You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2016/11/21 19:51:10 UTC

qpid-interop-test git commit: QPIDIT-50: Dereference Json::ValueConstIterator as object

Repository: qpid-interop-test
Updated Branches:
  refs/heads/master ca103a025 -> 238015950


QPIDIT-50: Dereference Json::ValueConstIterator as object


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

Branch: refs/heads/master
Commit: 238015950eaa2006e6f6d0aeb4ac6829f0fbe4e9
Parents: ca103a0
Author: Chuck Rolke <cr...@redhat.com>
Authored: Mon Nov 21 14:46:37 2016 -0500
Committer: Chuck Rolke <cr...@redhat.com>
Committed: Mon Nov 21 14:46:37 2016 -0500

----------------------------------------------------------------------
 .../src/qpidit/amqp_large_content_test/Sender.cpp         | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-interop-test/blob/23801595/shims/qpid-proton-cpp/src/qpidit/amqp_large_content_test/Sender.cpp
----------------------------------------------------------------------
diff --git a/shims/qpid-proton-cpp/src/qpidit/amqp_large_content_test/Sender.cpp b/shims/qpid-proton-cpp/src/qpidit/amqp_large_content_test/Sender.cpp
index 00fa42c..307abdf 100644
--- a/shims/qpid-proton-cpp/src/qpidit/amqp_large_content_test/Sender.cpp
+++ b/shims/qpid-proton-cpp/src/qpidit/amqp_large_content_test/Sender.cpp
@@ -53,20 +53,20 @@ namespace qpidit
                     if (s.credit()) {
                         uint32_t totSizeMb;
                         Json::Value numElementsList = Json::arrayValue;
-                        if (i->isInt()) {
-                            totSizeMb = i->asInt();
+                        if ((*i).isInt()) {
+                            totSizeMb = (*i).asInt();
                             numElementsList.append(1);
-                        } else if (i->isArray()) {
+                        } else if ((*i).isArray()) {
                             totSizeMb = (*i)[0].asInt();
                             numElementsList = (*i)[1];
                         } else {
-                            std::cerr << "on_sendable: Unexpected JSON type: " << i->type() << std::endl;
+                            std::cerr << "on_sendable: Unexpected JSON type: " << (*i).type() << std::endl;
                         }
                         for (Json::Value::iterator numElementsAsStrItr=numElementsList.begin();
                                                    numElementsAsStrItr!=numElementsList.end();
                                                    ++numElementsAsStrItr) {
                             proton::message msg;
-                            setMessage(msg, totSizeMb * 1024 * 1024, numElementsAsStrItr->asInt());
+                            setMessage(msg, totSizeMb * 1024 * 1024, (*numElementsAsStrItr).asInt());
                             s.send(msg);
                             _msgsSent++;
                         }


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