commit | 1675bec2f212b5efe76b85b1fe377d6560689b0f | [log] [tgz] |
---|---|---|
author | Lee Thomason <leethomason@gmail.com> | Sat Aug 10 17:35:08 2019 -0700 |
committer | GitHub <noreply@github.com> | Sat Aug 10 17:35:08 2019 -0700 |
tree | 37d53bc2ddc4789de6d14b7cc2f6448bb34ce4df | |
parent | 61a4c7d507322c9f494f5880d4c94b60e4ce9590 [diff] | |
parent | e1b30131820704e524587b6601202f6c54aba88b [diff] |
Merge pull request #743 from deduktionstheorem/master Issue 742: allow intermittent calls of XMLPrinter::ClearBuffer
diff --git a/tinyxml2.h b/tinyxml2.h index c7d4070..f0f6510 100755 --- a/tinyxml2.h +++ b/tinyxml2.h
@@ -2253,10 +2253,10 @@ If in print to memory mode, reset the buffer to the beginning. */ - void ClearBuffer() { + void ClearBuffer( bool resetToFirstElement = true ) { _buffer.Clear(); _buffer.Push(0); - _firstElement = true; + _firstElement = resetToFirstElement; } protected: