diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-09-23 17:28:38 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-09-23 17:28:38 (GMT) |
commit | 86502f97ecaea3254217d723b5f10b6405495184 (patch) | |
tree | 66859557d84fe96d692e8d6ee0a72d639a25b283 /src/bufstr.h | |
parent | 4ce0e4344711a79781e2f6d64f2553ab4b45c4a5 (diff) | |
download | Doxygen-86502f97ecaea3254217d723b5f10b6405495184.zip Doxygen-86502f97ecaea3254217d723b5f10b6405495184.tar.gz Doxygen-86502f97ecaea3254217d723b5f10b6405495184.tar.bz2 |
Release-1.2.10-20010923
Diffstat (limited to 'src/bufstr.h')
-rw-r--r-- | src/bufstr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bufstr.h b/src/bufstr.h index 576dac7..550ec4d 100644 --- a/src/bufstr.h +++ b/src/bufstr.h @@ -53,6 +53,14 @@ class BufStr : public QCString } offset+=s; } + void resize( uint newlen ) + { + QCString::resize(newlen); + if (offset>newlen) + { + offset=newlen; + } + } private: uint offset; const int spareRoom; // 10Kb extra room to avoid frequent resizing |