summaryrefslogtreecommitdiffstats
path: root/Source/cmFindBase.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmFindBase.cxx')
-rw-r--r--Source/cmFindBase.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx
index 8840cdc..81e081c 100644
--- a/Source/cmFindBase.cxx
+++ b/Source/cmFindBase.cxx
@@ -5,7 +5,6 @@
#include <algorithm>
#include <cstddef>
#include <deque>
-#include <functional>
#include <iterator>
#include <map>
#include <utility>
@@ -149,7 +148,7 @@ bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn)
return false;
}
auto command = this->Makefile->GetState()->GetCommand(args[j]);
- if (command == nullptr) {
+ if (!command) {
this->SetError(cmStrCat(
"command specified for \"VALIDATOR\" is undefined: ", args[j], '.'));
return false;