summaryrefslogtreecommitdiff
path: root/cpp/tests/InMemoryContentTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/tests/InMemoryContentTest.cpp')
-rw-r--r--cpp/tests/InMemoryContentTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/tests/InMemoryContentTest.cpp b/cpp/tests/InMemoryContentTest.cpp
index bd638dae66..ca27e80515 100644
--- a/cpp/tests/InMemoryContentTest.cpp
+++ b/cpp/tests/InMemoryContentTest.cpp
@@ -33,8 +33,9 @@ using namespace qpid::framing;
struct DummyHandler : OutputHandler{
std::vector<AMQFrame*> frames;
- virtual void send(AMQFrame* frame){
- frames.push_back(frame);
+
+ virtual void send(AMQDataBlock* block){
+ frames.push_back(dynamic_cast<AMQFrame*>(block));
}
};