diff options
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 3a2c690..02b3d87 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -2735,7 +2735,7 @@ bool cmake::StartDebuggerIfEnabled() return true; } - if (DebugAdapter == nullptr) { + if (!DebugAdapter) { if (this->GetDebuggerPipe().empty()) { std::cerr << "Error: --debugger-pipe must be set when debugging is enabled.\n"; @@ -2765,7 +2765,7 @@ void cmake::StopDebuggerIfNeeded(int exitCode) } // The debug adapter may have failed to start (e.g. invalid pipe path). - if (DebugAdapter != nullptr) { + if (DebugAdapter) { DebugAdapter->ReportExitCode(exitCode); DebugAdapter.reset(); } |