summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@users.noreply.gitlab.com>2024-08-27 13:30:00 (GMT)
committerVitaly Stakhovsky <vvs31415@users.noreply.gitlab.com>2024-08-27 14:56:38 (GMT)
commit58da4aa47df7d12c54c2d3f26722eca5dd8ee10f (patch)
treec5d9bf243c3ec1526fd9e171f28d581a6af57e70 /Source/cmake.cxx
parent72607d3402b91c3a9f4579c86175e4ca1ce6aa4e (diff)
downloadCMake-58da4aa47df7d12c54c2d3f26722eca5dd8ee10f.zip
CMake-58da4aa47df7d12c54c2d3f26722eca5dd8ee10f.tar.gz
CMake-58da4aa47df7d12c54c2d3f26722eca5dd8ee10f.tar.bz2
Source: Avoid comparing pointers to nullptr
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx4
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();
}