From 9e032bff43b8d2a49e4e2ecae1e98e6823fa5288 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 9 Oct 2018 18:06:39 +0100 Subject: Use nullptr instead of NULL where appropriate --- test/libsolidity/LibSolc.cpp | 4 ++-- test/tools/fuzzer.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/libsolidity/LibSolc.cpp b/test/libsolidity/LibSolc.cpp index 61e5ebba..94fed7e8 100644 --- a/test/libsolidity/LibSolc.cpp +++ b/test/libsolidity/LibSolc.cpp @@ -52,7 +52,7 @@ Json::Value compileMulti(string const& _input, bool _callback) { string output( _callback ? - compileJSONCallback(_input.c_str(), dev::test::Options::get().optimize, NULL) : + compileJSONCallback(_input.c_str(), dev::test::Options::get().optimize, nullptr) : compileJSONMulti(_input.c_str(), dev::test::Options::get().optimize) ); Json::Value ret; @@ -62,7 +62,7 @@ Json::Value compileMulti(string const& _input, bool _callback) Json::Value compile(string const& _input) { - string output(compileStandard(_input.c_str(), NULL)); + string output(compileStandard(_input.c_str(), nullptr)); Json::Value ret; BOOST_REQUIRE(jsonParseStrict(output, ret)); return ret; diff --git a/test/tools/fuzzer.cpp b/test/tools/fuzzer.cpp index ce4b721f..f7b42b25 100644 --- a/test/tools/fuzzer.cpp +++ b/test/tools/fuzzer.cpp @@ -86,7 +86,7 @@ void testConstantOptimizer() void runCompiler(string input) { - string outputString(compileStandard(input.c_str(), NULL)); + string outputString(compileStandard(input.c_str(), nullptr)); Json::Value output; if (!jsonParseStrict(outputString, output)) { -- cgit v1.2.3