summaryrefslogtreecommitdiffstats
path: root/src/bufstr.h
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-10-03 19:57:09 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-10-03 19:57:09 (GMT)
commitc52e719895be2a133e6574573584df5a91b98ec6 (patch)
tree47b95a7c3d927d419d3628f528e311aa99356173 /src/bufstr.h
parente174524c861548adb3cfd48ef59a7a4551cd2bfb (diff)
downloadDoxygen-c52e719895be2a133e6574573584df5a91b98ec6.zip
Doxygen-c52e719895be2a133e6574573584df5a91b98ec6.tar.gz
Doxygen-c52e719895be2a133e6574573584df5a91b98ec6.tar.bz2
Release-1.2.11-20011003
Diffstat (limited to 'src/bufstr.h')
-rw-r--r--src/bufstr.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/bufstr.h b/src/bufstr.h
index 550ec4d..b771c03 100644
--- a/src/bufstr.h
+++ b/src/bufstr.h
@@ -31,7 +31,7 @@ class BufStr : public QCString
{
if (offset>=size())
{
- resize(size()+spareRoom);
+ QCString::resize(size()+spareRoom);
}
data()[offset++]=c;
}
@@ -39,7 +39,7 @@ class BufStr : public QCString
{
if (offset+len>=size())
{
- resize(size()+len+spareRoom);
+ QCString::resize(size()+len+spareRoom);
}
memcpy(data()+offset,a,len);
offset+=len;
@@ -49,16 +49,21 @@ class BufStr : public QCString
{
if (offset+s>=size())
{
- resize(size()+s+spareRoom);
+ QCString::resize(size()+s+spareRoom);
}
offset+=s;
}
void resize( uint newlen )
{
- QCString::resize(newlen);
- if (offset>newlen)
+ //QCString::resize(newlen);
+ //if (offset>newlen)
+ //{
+ // offset=newlen;
+ //}
+ offset=newlen;
+ if (offset>=size())
{
- offset=newlen;
+ QCString::resize(size()+spareRoom);
}
}
private: