summaryrefslogtreecommitdiff
path: root/qpid/cpp/lib/client/ClientMessage.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-03-21 20:58:01 +0000
committerAlan Conway <aconway@apache.org>2007-03-21 20:58:01 +0000
commiteda1fcf07cd7d2adc141810373471c91f64b9a1e (patch)
tree81d7add74c1370e04a73df58c61d666c0a65c9d3 /qpid/cpp/lib/client/ClientMessage.cpp
parent1d606c164e31c81a341aad0f3fe8737dffc21e1d (diff)
downloadqpid-python-eda1fcf07cd7d2adc141810373471c91f64b9a1e.tar.gz
Cleaned up signatures: safer to return string than const string&.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@520993 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/lib/client/ClientMessage.cpp')
-rw-r--r--qpid/cpp/lib/client/ClientMessage.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/qpid/cpp/lib/client/ClientMessage.cpp b/qpid/cpp/lib/client/ClientMessage.cpp
index 3ad2d0b2f4..8edd0a474d 100644
--- a/qpid/cpp/lib/client/ClientMessage.cpp
+++ b/qpid/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);
}