summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-06-06 20:26:52 +0000
committerAlan Conway <aconway@apache.org>2007-06-06 20:26:52 +0000
commitfca1397c9ee37e92b57fd419186182cbec567435 (patch)
tree1ba9d0bf25f5aee03e9ba8c4dc7d4d6157cd6b39 /cpp
parent70a3cdf33b3e38ee26ee2840a55f83ebd26589b4 (diff)
downloadqpid-python-fca1397c9ee37e92b57fd419186182cbec567435.tar.gz
Made FieldTable argument of client::Channel::bind() optional.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@544938 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/client/ClientChannel.h3
-rw-r--r--cpp/src/tests/client_test.cpp4
2 files changed, 3 insertions, 4 deletions
diff --git a/cpp/src/qpid/client/ClientChannel.h b/cpp/src/qpid/client/ClientChannel.h
index 7f3074ea1b..4faf778d28 100644
--- a/cpp/src/qpid/client/ClientChannel.h
+++ b/cpp/src/qpid/client/ClientChannel.h
@@ -199,7 +199,8 @@ class Channel : public framing::ChannelAdapter
* is received from the broker
*/
void bind(const Exchange& exchange, const Queue& queue,
- const std::string& key, const framing::FieldTable& args,
+ const std::string& key,
+ const framing::FieldTable& args=framing::FieldTable(),
bool synch = true);
/**
diff --git a/cpp/src/tests/client_test.cpp b/cpp/src/tests/client_test.cpp
index d1fc261931..a05c01043f 100644
--- a/cpp/src/tests/client_test.cpp
+++ b/cpp/src/tests/client_test.cpp
@@ -34,7 +34,6 @@
#include "qpid/client/ClientMessage.h"
#include "qpid/client/MessageListener.h"
#include "qpid/sys/Monitor.h"
-#include "qpid/framing/FieldTable.h"
using namespace qpid::client;
using namespace qpid::sys;
@@ -90,8 +89,7 @@ int main(int argc, char**)
if (verbose) std::cout << "Declared queue." << std::endl;
//now bind the queue to the exchange
- qpid::framing::FieldTable args;
- channel.bind(exchange, queue, "MyTopic", args);
+ channel.bind(exchange, queue, "MyTopic");
if (verbose) std::cout << "Bound queue to exchange." << std::endl;
//Set up a message listener to receive any messages that