diff options
| author | Gordon Sim <gsim@apache.org> | 2013-08-30 12:31:45 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2013-08-30 12:31:45 +0000 |
| commit | 425ab451141331c183b03277cf35c00c3e9d6654 (patch) | |
| tree | cead47eaf1a321d22d08d46eca21a5c65cd39e77 /cpp/src/qpid/messaging/MessageImpl.cpp | |
| parent | d88d41f66a1f87966fe988ae168f6ce15dbe0603 (diff) | |
| download | qpid-python-425ab451141331c183b03277cf35c00c3e9d6654.tar.gz | |
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
Diffstat (limited to 'cpp/src/qpid/messaging/MessageImpl.cpp')
| -rw-r--r-- | cpp/src/qpid/messaging/MessageImpl.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
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<const qpid::messaging::amqp::EncodedMessage>(); + internalId = 0; +} + void MessageImpl::setReplyTo(const Address& d) { replyTo = d; |
