summaryrefslogtreecommitdiff
path: root/qpid/cpp/examples/xml-exchange
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-11-13 18:48:43 +0000
committerGordon Sim <gsim@apache.org>2008-11-13 18:48:43 +0000
commit74b553b6ef2ccaa18a85c729b00cd0f14233e3b1 (patch)
tree5b23d095684c1362a4c6c2148b6043472a7d2f04 /qpid/cpp/examples/xml-exchange
parent84cd555a220a48737adb78154de4adbb2ac6d1e1 (diff)
downloadqpid-python-74b553b6ef2ccaa18a85c729b00cd0f14233e3b1.tar.gz
Minor cleanup edits to examples (from jrobie@redhat.com)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@713785 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples/xml-exchange')
-rw-r--r--qpid/cpp/examples/xml-exchange/listener.cpp2
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 2c9a1e7a55..02b722c745 100644
--- a/qpid/cpp/examples/xml-exchange/listener.cpp
+++ b/qpid/cpp/examples/xml-exchange/listener.cpp
@@ -79,8 +79,8 @@ void Listener::received(Message& message) {
int main(int argc, char** argv) {
const char* host = argc>1 ? argv[1] : "127.0.0.1";
int port = argc>2 ? atoi(argv[2]) : 5672;
+
Connection connection;
- Message msg;
try {
connection.open(host, port);
Session session = connection.newSession();