From 425ab451141331c183b03277cf35c00c3e9d6654 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 30 Aug 2013 12:31:45 +0000 Subject: QPID-5040: fix for string and symbol types on AmqpValue section (also clear message on fetch()) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1518955 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/messaging/MessageImpl.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'cpp/src/qpid/messaging/MessageImpl.cpp') diff --git a/cpp/src/qpid/messaging/MessageImpl.cpp b/cpp/src/qpid/messaging/MessageImpl.cpp index 7b5854745e..e9232804d8 100644 --- a/cpp/src/qpid/messaging/MessageImpl.cpp +++ b/cpp/src/qpid/messaging/MessageImpl.cpp @@ -47,6 +47,27 @@ MessageImpl::MessageImpl(const char* chars, size_t count) : contentDecoded(false), internalId(0) {} +void MessageImpl::clear() +{ + replyTo = Address(); + subject = std::string(); + contentType = std::string(); + messageId = std::string(); + userId= std::string(); + correlationId = std::string(); + priority = 0; + ttl = 0; + durable = false; + redelivered = false; + headers = qpid::types::Variant::Map(); + + bytes = std::string(); + content = qpid::types::Variant(); + contentDecoded = false; + encoded = boost::shared_ptr(); + internalId = 0; +} + void MessageImpl::setReplyTo(const Address& d) { replyTo = d; -- cgit v1.2.1