Skip to content

Commit

Permalink
Fixed issue #48.
Browse files Browse the repository at this point in the history
Maxsize is now preserved when calling StreamBuffer::clear().
  • Loading branch information
KimonHoffmann committed Oct 14, 2016
1 parent 56c5dcd commit 03f3db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libember/Headers/ember/util/StreamBuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ namespace libember { namespace util
template<typename ValueType, unsigned short ChunkSize>
inline void StreamBuffer<ValueType, ChunkSize>::clear()
{
StreamBuffer empty;
StreamBuffer empty(m_maxsize);
swap(empty);
}

Expand Down

0 comments on commit 03f3db8

Please sign in to comment.