qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cliffjan...@apache.org
Subject qpid-proton git commit: PROTON-1211: C++ binding - incorrect replacing of message correlation_id
Date Wed, 25 May 2016 00:11:06 GMT
Repository: qpid-proton
Updated Branches:
  refs/heads/master 23d2686bb -> ebc78988a


PROTON-1211: C++ binding - incorrect replacing of message correlation_id


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

Branch: refs/heads/master
Commit: ebc78988a0f28399cbbc91edb5c63a4218084571
Parents: 23d2686
Author: Clifford Jansen <cliffjansen@apache.org>
Authored: Tue May 24 17:10:32 2016 -0700
Committer: Clifford Jansen <cliffjansen@apache.org>
Committed: Tue May 24 17:10:32 2016 -0700

----------------------------------------------------------------------
 proton-c/bindings/cpp/src/message.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/ebc78988/proton-c/bindings/cpp/src/message.cpp
----------------------------------------------------------------------
diff --git a/proton-c/bindings/cpp/src/message.cpp b/proton-c/bindings/cpp/src/message.cpp
index 432553c..172da7b 100644
--- a/proton-c/bindings/cpp/src/message.cpp
+++ b/proton-c/bindings/cpp/src/message.cpp
@@ -142,8 +142,9 @@ std::string message::reply_to() const {
 }
 
 void message::correlation_id(const message_id& id) {
-    codec::encoder e(make_wrapper(pn_message_correlation_id(pn_msg())));
-    e << id;
+    value v;
+    v.data_ = make_wrapper(pn_message_correlation_id(pn_msg()));
+    v = id;
 }
 
 message_id message::correlation_id() const {


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


Mime
View raw message