diff options
author | Alan Conway <aconway@apache.org> | 2007-03-21 20:58:01 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-03-21 20:58:01 +0000 |
commit | 2f353df74e0f0c11c83705ea2ef5da1bb6e4a32e (patch) | |
tree | f21489ef121e4332784e91b8a088eae047d90609 /cpp/lib/client/ClientMessage.cpp | |
parent | 62921dc211aa91d28b41ea4bb59d6e1e7e08b781 (diff) | |
download | qpid-python-2f353df74e0f0c11c83705ea2ef5da1bb6e4a32e.tar.gz |
Cleaned up signatures: safer to return string than const string&.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@520993 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/client/ClientMessage.cpp')
-rw-r--r-- | cpp/lib/client/ClientMessage.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/cpp/lib/client/ClientMessage.cpp b/cpp/lib/client/ClientMessage.cpp index 3ad2d0b2f4..8edd0a474d 100644 --- a/cpp/lib/client/ClientMessage.cpp +++ b/cpp/lib/client/ClientMessage.cpp @@ -42,11 +42,11 @@ BasicHeaderProperties* Message::getHeaderProperties() const { return dynamic_cast<BasicHeaderProperties*>(header->getProperties()); } -const std::string& Message::getContentType() const { +std::string Message::getContentType() const { return getHeaderProperties()->getContentType(); } -const std::string& Message::getContentEncoding() const { +std::string Message::getContentEncoding() const { return getHeaderProperties()->getContentEncoding(); } @@ -62,19 +62,19 @@ uint8_t Message::getPriority() const { return getHeaderProperties()->getPriority(); } -const std::string& Message::getCorrelationId() const { +std::string Message::getCorrelationId() const { return getHeaderProperties()->getCorrelationId(); } -const std::string& Message::getReplyTo() const { +std::string Message::getReplyTo() const { return getHeaderProperties()->getReplyTo(); } -const std::string& Message::getExpiration() const { +std::string Message::getExpiration() const { return getHeaderProperties()->getExpiration(); } -const std::string& Message::getMessageId() const { +std::string Message::getMessageId() const { return getHeaderProperties()->getMessageId(); } @@ -82,19 +82,19 @@ uint64_t Message::getTimestamp() const { return getHeaderProperties()->getTimestamp(); } -const std::string& Message::getType() const { +std::string Message::getType() const { return getHeaderProperties()->getType(); } -const std::string& Message::getUserId() const { +std::string Message::getUserId() const { return getHeaderProperties()->getUserId(); } -const std::string& Message::getAppId() const { +std::string Message::getAppId() const { return getHeaderProperties()->getAppId(); } -const std::string& Message::getClusterId() const { +std::string Message::getClusterId() const { return getHeaderProperties()->getClusterId(); } @@ -110,7 +110,7 @@ void Message::setHeaders(const FieldTable& headers){ getHeaderProperties()->setHeaders(headers); } -void Message::setDeliveryMode(uint8_t mode){ +void Message::setDeliveryMode(DeliveryMode mode){ getHeaderProperties()->setDeliveryMode(mode); } |