diff options
| author | Alan Conway <aconway@apache.org> | 2007-06-06 20:26:52 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-06-06 20:26:52 +0000 |
| commit | 3a00442a29d77282fe3fb4a810627deae319c796 (patch) | |
| tree | 0825d59ddad965322374fc3ed616094e92186d8c /qpid/cpp | |
| parent | 638e704cbfb99eb912619bb5d54793c52f7182ab (diff) | |
| download | qpid-python-3a00442a29d77282fe3fb4a810627deae319c796.tar.gz | |
Made FieldTable argument of client::Channel::bind() optional.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@544938 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/src/qpid/client/ClientChannel.h | 3 | ||||
| -rw-r--r-- | qpid/cpp/src/tests/client_test.cpp | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/qpid/cpp/src/qpid/client/ClientChannel.h b/qpid/cpp/src/qpid/client/ClientChannel.h index 7f3074ea1b..4faf778d28 100644 --- a/qpid/cpp/src/qpid/client/ClientChannel.h +++ b/qpid/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/qpid/cpp/src/tests/client_test.cpp b/qpid/cpp/src/tests/client_test.cpp index d1fc261931..a05c01043f 100644 --- a/qpid/cpp/src/tests/client_test.cpp +++ b/qpid/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 |
