You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by cl...@apache.org on 2016/04/29 18:47:10 UTC

qpid-proton git commit: PROTON-1183: clearer filter example

Repository: qpid-proton
Updated Branches:
  refs/heads/master 6e6cb0499 -> 07ab957ff


PROTON-1183: clearer filter example


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/07ab957f
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/07ab957f
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/07ab957f

Branch: refs/heads/master
Commit: 07ab957ffe8918586ddc3f66ea1ef47606b6b077
Parents: 6e6cb04
Author: Clifford Jansen <cl...@apache.org>
Authored: Fri Apr 29 09:46:47 2016 -0700
Committer: Clifford Jansen <cl...@apache.org>
Committed: Fri Apr 29 09:46:47 2016 -0700

----------------------------------------------------------------------
 examples/cpp/selected_recv.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/07ab957f/examples/cpp/selected_recv.cpp
----------------------------------------------------------------------
diff --git a/examples/cpp/selected_recv.cpp b/examples/cpp/selected_recv.cpp
index c450cba..af3a5eb 100644
--- a/examples/cpp/selected_recv.cpp
+++ b/examples/cpp/selected_recv.cpp
@@ -61,10 +61,10 @@ class selected_recv : public proton::handler {
     selected_recv(const proton::url& u) : url(u) {}
 
     void on_container_start(proton::container &c) override {
-        proton::source_options custom_selector;
-        set_filter(custom_selector, "colour = 'green'");
+        proton::source_options opts;
+        set_filter(opts, "colour = 'green'");
         proton::connection conn = c.connect(url);
-        conn.open_receiver(url.path(), proton::receiver_options().source(custom_selector));
+        conn.open_receiver(url.path(), proton::receiver_options().source(opts));
     }
 
     void on_message(proton::delivery &d, proton::message &m) override {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org