diff options
Diffstat (limited to 'cpp/client')
-rw-r--r-- | cpp/client/inc/IncomingMessage.h | 2 | ||||
-rw-r--r-- | cpp/client/src/IncomingMessage.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/client/inc/IncomingMessage.h b/cpp/client/inc/IncomingMessage.h index 1fee6af433..04b1fb40ba 100644 --- a/cpp/client/inc/IncomingMessage.h +++ b/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/cpp/client/src/IncomingMessage.cpp b/cpp/client/src/IncomingMessage.cpp index 8e2604c4cb..c95a92b651 100644 --- a/cpp/client/src/IncomingMessage.cpp +++ b/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(); } |