From e74eaed0bc3665bc38d7cbedce85f85536f92824 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 28 Jan 2010 08:37:37 +0000 Subject: QPID-664: change format of connection options string to match address options; make open() a non-static method. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@904000 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/examples/messaging/map_receiver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/examples/messaging/map_receiver.cpp') diff --git a/cpp/examples/messaging/map_receiver.cpp b/cpp/examples/messaging/map_receiver.cpp index 0106ce878c..05be4090d2 100644 --- a/cpp/examples/messaging/map_receiver.cpp +++ b/cpp/examples/messaging/map_receiver.cpp @@ -39,7 +39,8 @@ int main(int argc, char** argv) { const char* url = argc>1 ? argv[1] : "amqp:tcp:127.0.0.1:5672"; try { - Connection connection = Connection::open(url); + Connection connection; + connection.open(url); Session session = connection.newSession(); Receiver receiver = session.createReceiver("message_queue"); Message message = receiver.fetch(); -- cgit v1.2.1