summaryrefslogtreecommitdiff
path: root/qpid
diff options
context:
space:
mode:
authorCharles E. Rolke <chug@apache.org>2014-04-21 22:24:41 +0000
committerCharles E. Rolke <chug@apache.org>2014-04-21 22:24:41 +0000
commit5acbdeaa2ae848c924855eee800abb365d26ff6f (patch)
tree0cf9b3aed1059eecfbb5460db914709b4f47eb9d /qpid
parente2fb71a18ed1a129ed0470416ca93a7cfa4a72c5 (diff)
downloadqpid-python-5acbdeaa2ae848c924855eee800abb365d26ff6f.tar.gz
QPID-5663: [C++ Messaging] Windows AMQP 1.0 map_receiver fails - merge fix to 0.28 branch
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.28@1588994 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid')
-rw-r--r--qpid/cpp/src/qpid/messaging/amqp/EncodedMessage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/messaging/amqp/EncodedMessage.cpp b/qpid/cpp/src/qpid/messaging/amqp/EncodedMessage.cpp
index 6b9c21ea92..2ca8323ba2 100644
--- a/qpid/cpp/src/qpid/messaging/amqp/EncodedMessage.cpp
+++ b/qpid/cpp/src/qpid/messaging/amqp/EncodedMessage.cpp
@@ -229,7 +229,7 @@ void EncodedMessage::getBody(std::string& raw, qpid::types::Variant& c) const
c = builder.getList();
raw.assign(body.data, body.size);
} else if (bodyType == qpid::amqp::typecodes::MAP_NAME) {
- qpid::amqp::DataBuilder builder = qpid::amqp::DataBuilder(qpid::types::Variant::Map());
+ qpid::amqp::DataBuilder builder(new qpid::types::Variant::Map());
qpid::amqp::Decoder decoder(body.data, body.size);
decoder.read(builder);
c = builder.getValue().asMap();