瀏覽代碼
Changed CDataStream::GetAndClear() to use the most obvious get get and clear instead of a tricky swap(). Added a unit test for CDataStream insert/erase/GetAndClear. Note: GetAndClear() is not performance critical, it is used only by the send-a-message-to-the-network code. Bug was not noticed before now because the send-a-message code never erased from the stream.pull/1/head
共有 2 個文件被更改,包括 50 次插入 和 2 次删除
Loading…
Reference in new issue