summaryrefslogtreecommitdiff
path: root/lib/common/MemBlockStream.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-02-11 18:21:26 +0000
committerChris Wilson <chris+github@qwirx.com>2014-02-11 18:21:26 +0000
commit617e89e9e893f9aac53be7153af24ae8052b1a28 (patch)
treea7a06dc3f7dbc85f533a06a4bc4c1c8d060daf54 /lib/common/MemBlockStream.cpp
parent1aa659a9290fae89fec82c4ccf360c1edab37bd6 (diff)
Fix compile error in MemBlockStream.
Fix test/common memory leak checks now that MemBlockStream allocates another block.
Diffstat (limited to 'lib/common/MemBlockStream.cpp')
-rw-r--r--lib/common/MemBlockStream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common/MemBlockStream.cpp b/lib/common/MemBlockStream.cpp
index f6b7d07b..90c0eaf6 100644
--- a/lib/common/MemBlockStream.cpp
+++ b/lib/common/MemBlockStream.cpp
@@ -63,7 +63,7 @@ MemBlockStream::MemBlockStream(const std::string& rMessage)
{
mTempBuffer.Write(rMessage.c_str(), rMessage.size());
mTempBuffer.SetForReading();
- mpBuffer = mTempBuffer.GetBuffer();
+ mpBuffer = (const char *)(mTempBuffer.GetBuffer());
mBytesInBuffer = rMessage.size();
ASSERT(mpBuffer != 0);
ASSERT(mBytesInBuffer >= 0);