diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-10-21 19:32:43 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-10-21 19:32:43 (GMT) |
commit | 569509f4bfbf44c67e237a01f957fdfe52223cfa (patch) | |
tree | fae8b2848d52b1f3ba8ed8f50f5e4135f170ee95 /Source/cmFindBase.cxx | |
parent | 6c9b3b5c03b41842d3d79c1bd80691be7e5c6f89 (diff) | |
download | CMake-569509f4bfbf44c67e237a01f957fdfe52223cfa.zip CMake-569509f4bfbf44c67e237a01f957fdfe52223cfa.tar.gz CMake-569509f4bfbf44c67e237a01f957fdfe52223cfa.tar.bz2 |
Fix newly discovered clang-tidy issues
Clang-tidy reports some issues only from the currently compiled source
file and its associated header file. Separating the compilation of
commands exposed some clang-tidy issues that were not reported previously.
Fix them.
Diffstat (limited to 'Source/cmFindBase.cxx')
-rw-r--r-- | Source/cmFindBase.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx index 9e08f30..118c581 100644 --- a/Source/cmFindBase.cxx +++ b/Source/cmFindBase.cxx @@ -302,7 +302,7 @@ bool cmFindBase::CheckForVariableInCache() cmState* state = this->Makefile->GetState(); const char* cacheEntry = state->GetCacheEntryValue(this->VariableName); bool found = !cmSystemTools::IsNOTFOUND(cacheValue); - bool cached = cacheEntry ? true : false; + bool cached = cacheEntry != CM_NULLPTR; if (found) { // If the user specifies the entry on the command line without a // type we should add the type and docstring but keep the |