diff options
author | Andrew Stitcher <astitcher@apache.org> | 2008-10-13 21:24:40 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2008-10-13 21:24:40 +0000 |
commit | 735ec9528d15ff5bd496d1229cc1cba510d9005d (patch) | |
tree | f9c99860706e5ba49b49f6017ed136755d979d59 /qpid/cpp/examples/xml-exchange | |
parent | 4d0136f757776a1860c0d08e9674cfd18529b586 (diff) | |
download | qpid-python-735ec9528d15ff5bd496d1229cc1cba510d9005d.tar.gz |
Field Table API: changed the getInt() & getString() operations
which are inconsistent with all the other getXXX() functions to
getAsString()/getAsInt() to better indicate their real function.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@704255 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples/xml-exchange')
-rw-r--r-- | qpid/cpp/examples/xml-exchange/listener.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/examples/xml-exchange/listener.cpp b/qpid/cpp/examples/xml-exchange/listener.cpp index 98646bea95..94cd1670e5 100644 --- a/qpid/cpp/examples/xml-exchange/listener.cpp +++ b/qpid/cpp/examples/xml-exchange/listener.cpp @@ -50,7 +50,7 @@ Listener::Listener(SubscriptionManager& subs) : subscriptions(subs) void Listener::received(Message& message) { std::cout << "Message: " << message.getData() << std::endl; - if (message.getHeaders().getString("control") == "end") { + if (message.getHeaders().getAsString("control") == "end") { std::cout << "Shutting down listener for " << message.getDestination() << std::endl; subscriptions.cancel(message.getDestination()); |