diff options
author | Gordon Sim <gsim@apache.org> | 2009-10-02 13:01:51 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2009-10-02 13:01:51 +0000 |
commit | 1442aac5016d54db03dff3411751f560097606b0 (patch) | |
tree | 7c71f54e7d4c99ac47582d445b0324efb10a120e /qpid/cpp/examples/messaging/topic_receiver.cpp | |
parent | 89024aa7017ed715223832420c11cf391f06fbad (diff) | |
download | qpid-python-1442aac5016d54db03dff3411751f560097606b0.tar.gz |
define content- and view- classes separately from message class
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@821000 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples/messaging/topic_receiver.cpp')
-rw-r--r-- | qpid/cpp/examples/messaging/topic_receiver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/examples/messaging/topic_receiver.cpp b/qpid/cpp/examples/messaging/topic_receiver.cpp index 063f0d9cb0..7352a91b30 100644 --- a/qpid/cpp/examples/messaging/topic_receiver.cpp +++ b/qpid/cpp/examples/messaging/topic_receiver.cpp @@ -47,8 +47,8 @@ int main(int argc, char** argv) { Receiver receiver = session.createReceiver(Address("news_service", "topic"), filter); while (true) { Message message = receiver.fetch(); - std::cout << "Message: " << message.getContent().asString() << std::endl; - if (message.getContent().asString() == "That's all, folks!") { + std::cout << "Message: " << message.getContent() << std::endl; + if (message.getContent() == "That's all, folks!") { std::cout << "Cancelling receiver" << std::endl; receiver.cancel(); break; |