summaryrefslogtreecommitdiff
path: root/lib
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
parent1aa659a9290fae89fec82c4ccf360c1edab37bd6 (diff)
Fix compile error in MemBlockStream.
Fix test/common memory leak checks now that MemBlockStream allocates another block.
Diffstat (limited to 'lib')
-rw-r--r--lib/common/MemBlockStream.cpp2
-rw-r--r--lib/common/MemBlockStream.h2
2 files changed, 2 insertions, 2 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);
diff --git a/lib/common/MemBlockStream.h b/lib/common/MemBlockStream.h
index f02e57ba..98398121 100644
--- a/lib/common/MemBlockStream.h
+++ b/lib/common/MemBlockStream.h
@@ -10,10 +10,10 @@
#ifndef MEMBLOCKSTREAM__H
#define MEMBLOCKSTREAM__H
+#include "CollectInBufferStream.h"
#include "IOStream.h"
class StreamableMemBlock;
-class CollectInBufferStream;
// --------------------------------------------------------------------------
//