summaryrefslogtreecommitdiffstats
path: root/Source/cmDepends.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmDepends.cxx')
-rw-r--r--Source/cmDepends.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmDepends.cxx b/Source/cmDepends.cxx
index 04bccce..34f67d0 100644
--- a/Source/cmDepends.cxx
+++ b/Source/cmDepends.cxx
@@ -154,7 +154,7 @@ bool cmDepends::CheckDependencies(std::istream& internalDepends,
dependee = line.substr(1);
// Add dependee to depender's list
- if (currentDependencies != nullptr) {
+ if (currentDependencies) {
currentDependencies->push_back(dependee);
}
@@ -210,7 +210,7 @@ bool cmDepends::CheckDependencies(std::istream& internalDepends,
// Remove the information of this depender from the map, it needs
// to be rescanned
- if (currentDependencies != nullptr) {
+ if (currentDependencies) {
validDeps.erase(depender);
currentDependencies = nullptr;
}