summaryrefslogtreecommitdiff
path: root/qpid/cpp/client
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2006-10-06 16:17:06 +0000
committerGordon Sim <gsim@apache.org>2006-10-06 16:17:06 +0000
commit03ec6f44055600e54e7f20ff530ef3ef38eb92f0 (patch)
tree90a1168989e5a6ce39f5518f96ff19ef6add7a7a /qpid/cpp/client
parent8068afaf533fe54a175382bd52e2b6dd187e1eb8 (diff)
downloadqpid-python-03ec6f44055600e54e7f20ff530ef3ef38eb92f0.tar.gz
Decoupled routing from the channel and message classes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@453657 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/client')
-rw-r--r--qpid/cpp/client/inc/IncomingMessage.h2
-rw-r--r--qpid/cpp/client/src/IncomingMessage.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/client/inc/IncomingMessage.h b/qpid/cpp/client/inc/IncomingMessage.h
index 1fee6af433..04b1fb40ba 100644
--- a/qpid/cpp/client/inc/IncomingMessage.h
+++ b/qpid/cpp/client/inc/IncomingMessage.h
@@ -47,7 +47,7 @@ namespace client {
bool isReturn();
bool isDelivery();
bool isResponse();
- string& getConsumerTag();//only relevant if isDelivery()
+ const string& getConsumerTag();//only relevant if isDelivery()
qpid::framing::AMQHeaderBody::shared_ptr& getHeader();
u_int64_t getDeliveryTag();
void getData(string& data);
diff --git a/qpid/cpp/client/src/IncomingMessage.cpp b/qpid/cpp/client/src/IncomingMessage.cpp
index 8e2604c4cb..c95a92b651 100644
--- a/qpid/cpp/client/src/IncomingMessage.cpp
+++ b/qpid/cpp/client/src/IncomingMessage.cpp
@@ -53,7 +53,7 @@ bool IncomingMessage::isResponse(){
return response;
}
-string& IncomingMessage::getConsumerTag(){
+const string& IncomingMessage::getConsumerTag(){
if(!isDelivery()) THROW_QPID_ERROR(CLIENT_ERROR, "Consumer tag only valid for delivery");
return delivered->getConsumerTag();
}