From 76dc828e245ac96efda0e81a478824e12411aab8 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Thu, 7 Sep 2017 11:33:52 +0300 Subject: [PATCH] Use nullptr (#950) Refactoring: use nullptr --- cli/threadexecutor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/threadexecutor.cpp b/cli/threadexecutor.cpp index 4f4068123..c9faa4f24 100644 --- a/cli/threadexecutor.cpp +++ b/cli/threadexecutor.cpp @@ -333,7 +333,7 @@ void ThreadExecutor::writeToPipe(PipeSignal type, const std::string &data) std::memcpy(&(out[1+sizeof(len)]), data.c_str(), len); if (write(_wpipe, out, len + 1 + sizeof(len)) <= 0) { delete [] out; - out = 0; + out = nullptr; std::cerr << "#### ThreadExecutor::writeToPipe, Failed to write to pipe" << std::endl; std::exit(0); }