diff options
Diffstat (limited to 'qpid/cpp/src/qpid/client/LocalQueue.cpp')
-rw-r--r-- | qpid/cpp/src/qpid/client/LocalQueue.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/client/LocalQueue.cpp b/qpid/cpp/src/qpid/client/LocalQueue.cpp index e449c9f795..02fecf804f 100644 --- a/qpid/cpp/src/qpid/client/LocalQueue.cpp +++ b/qpid/cpp/src/qpid/client/LocalQueue.cpp @@ -19,11 +19,14 @@ * */ #include "LocalQueue.h" +#include "MessageImpl.h" #include "qpid/Exception.h" #include "qpid/framing/FrameSet.h" +#include "qpid/framing/MessageTransferBody.h" #include "qpid/framing/reply_exceptions.h" #include "HandlePrivate.h" #include "SubscriptionImpl.h" +#include "CompletionImpl.h" namespace qpid { namespace client { @@ -49,7 +52,7 @@ bool LocalQueue::get(Message& result, sys::Duration timeout) { bool ok = queue->pop(content, timeout); if (!ok) return false; if (content->isA<MessageTransferBody>()) { - result = Message(*content); + result = Message(new MessageImpl(*content)); boost::intrusive_ptr<SubscriptionImpl> si = HandlePrivate<SubscriptionImpl>::get(subscription); assert(si); if (si) si->received(result); |