Repository: qpid-proton Updated Branches: refs/heads/0.13.x cdc4346ec -> b937c85d2
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/b937c85d Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/b937c85d Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/b937c85d Branch: refs/heads/0.13.x Commit: b937c85d213fe64a959e259c60ae700904371566 Parents: cdc4346 Author: Clifford Jansen <[email protected]> Authored: Wed May 25 19:18:49 2016 -0700 Committer: Clifford Jansen <[email protected]> Committed: Wed May 25 19:18:49 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/b937c85d/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: [email protected] For additional commands, e-mail: [email protected]
