diff options
| author | Gordon Sim <gsim@apache.org> | 2006-10-06 16:17:06 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2006-10-06 16:17:06 +0000 |
| commit | 14654e5360b72adf1704838b3820c7d1fc860e8e (patch) | |
| tree | 0342b1cedd2262809edb951fc234bc75deb20533 /cpp/client | |
| parent | 55ad18a1c847c1b14d48c56ce7ee253aadf86ef7 (diff) | |
| download | qpid-python-14654e5360b72adf1704838b3820c7d1fc860e8e.tar.gz | |
Decoupled routing from the channel and message classes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@453657 13f79535-47bb-0310-9956-ffa450edef68
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(); } |
