summaryrefslogtreecommitdiffstats
path: root/src/bufstr.h
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2005-03-15 19:18:42 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2005-03-15 19:18:42 (GMT)
commit2fcc16df64d2af93fc0bb01617f8531116118e8d (patch)
tree504aa22719248b74962bee0517b645cfabab52d2 /src/bufstr.h
parent5a6400835bc92fb56ef65126785cbe75f092f2d1 (diff)
downloadDoxygen-2fcc16df64d2af93fc0bb01617f8531116118e8d.zip
Doxygen-2fcc16df64d2af93fc0bb01617f8531116118e8d.tar.gz
Doxygen-2fcc16df64d2af93fc0bb01617f8531116118e8d.tar.bz2
Release-1.4.1-20050315
Diffstat (limited to 'src/bufstr.h')
-rw-r--r--src/bufstr.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bufstr.h b/src/bufstr.h
index 7d3c284..c1cb307 100644
--- a/src/bufstr.h
+++ b/src/bufstr.h
@@ -55,6 +55,11 @@ class BufStr
makeRoomFor(s);
m_writeOffset+=s;
}
+ void shrink( uint newlen )
+ {
+ m_writeOffset=newlen;
+ resize(newlen);
+ }
void resize( uint newlen )
{
m_size=newlen;