From fca1397c9ee37e92b57fd419186182cbec567435 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 6 Jun 2007 20:26:52 +0000 Subject: 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 --- cpp/src/qpid/client/ClientChannel.h | 3 ++- cpp/src/tests/client_test.cpp | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'cpp/src') 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 -- cgit v1.2.1