You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kp...@apache.org on 2018/03/21 18:50:34 UTC

qpid-interop-test git commit: QPIDIT-46: Minor fix for previous checkin, some early compilers won't handle nullptr, use NULL instead

Repository: qpid-interop-test
Updated Branches:
  refs/heads/master b87dc72a3 -> 7ec8c53a9


QPIDIT-46: Minor fix for previous checkin, some early compilers won't handle nullptr, use NULL instead


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/7ec8c53a
Tree: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/tree/7ec8c53a
Diff: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/diff/7ec8c53a

Branch: refs/heads/master
Commit: 7ec8c53a9c71293156106ef97e1cd18cdcfc0fb1
Parents: b87dc72
Author: Kim van der Riet <kv...@localhost.localdomain>
Authored: Wed Mar 21 14:50:19 2018 -0400
Committer: Kim van der Riet <kv...@localhost.localdomain>
Committed: Wed Mar 21 14:50:19 2018 -0400

----------------------------------------------------------------------
 shims/qpid-proton-cpp/src/qpidit/amqp_types_test/Sender.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-interop-test/blob/7ec8c53a/shims/qpid-proton-cpp/src/qpidit/amqp_types_test/Sender.cpp
----------------------------------------------------------------------
diff --git a/shims/qpid-proton-cpp/src/qpidit/amqp_types_test/Sender.cpp b/shims/qpid-proton-cpp/src/qpidit/amqp_types_test/Sender.cpp
index d083791..7b47827 100644
--- a/shims/qpid-proton-cpp/src/qpidit/amqp_types_test/Sender.cpp
+++ b/shims/qpid-proton-cpp/src/qpidit/amqp_types_test/Sender.cpp
@@ -127,14 +127,14 @@ namespace qpidit
             if (amqpType.compare("float") == 0) {
                 const std::string testValueStr = testValue.asString();
                 if (testValueStr.find("0x") == std::string::npos) // regular decimal fraction
-                    return std::strtof(testValueStr.c_str(), nullptr);
+                    return std::strtof(testValueStr.c_str(), NULL);
                 // hex representation of float
                 return floatValue<float, uint32_t>(amqpType, testValue.asString());
             }
             if (amqpType.compare("double") == 0) {
                 const std::string testValueStr = testValue.asString();
                 if (testValueStr.find("0x") == std::string::npos) // regular decimal fraction
-                    return std::strtod(testValueStr.c_str(), nullptr);
+                    return std::strtod(testValueStr.c_str(), NULL);
                 // hex representation of float
                 return floatValue<double, uint64_t>(amqpType, testValue.asString());
             }


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