Merge pull request #743 from deduktionstheorem/master

Issue 742: allow intermittent calls of XMLPrinter::ClearBuffer
This commit is contained in:
Lee Thomason
2019-08-10 17:35:08 -07:00
committed by GitHub

View File

@@ -2253,10 +2253,10 @@ public:
If in print to memory mode, reset the buffer to the If in print to memory mode, reset the buffer to the
beginning. beginning.
*/ */
void ClearBuffer() { void ClearBuffer( bool resetToFirstElement = true ) {
_buffer.Clear(); _buffer.Clear();
_buffer.Push(0); _buffer.Push(0);
_firstElement = true; _firstElement = resetToFirstElement;
} }
protected: protected: