summaryrefslogtreecommitdiffstats
path: root/src/bufstr.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2005-03-15 19:18:42 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2005-03-15 19:18:42 (GMT)
commitb91d710ef9e95feffbb1c97d3fc7695157e0731e (patch)
tree504aa22719248b74962bee0517b645cfabab52d2 /src/bufstr.h
parent42eb3f9c14016086a2d2b18951585816eaf7bcab (diff)
downloadDoxygen-b91d710ef9e95feffbb1c97d3fc7695157e0731e.zip
Doxygen-b91d710ef9e95feffbb1c97d3fc7695157e0731e.tar.gz
Doxygen-b91d710ef9e95feffbb1c97d3fc7695157e0731e.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;