summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Joubert <joubert.sy@gmail.com>2020-03-06 15:50:28 +0100
committerSylvain Joubert <joubert.sy@gmail.com>2020-03-06 16:07:18 +0100
commitcc070e66cd9bd0d4e0ce56ad9dd307dbb854e61f (patch)
treeeeaba0b2b7eb2f0801981ae5c31e534c59581903
parent41162cbb81401c42578ca794ad6fd01aebc109c5 (diff)
downloadcmake-cc070e66cd9bd0d4e0ce56ad9dd307dbb854e61f.tar.gz
cmFindBase: Use in-class member initialization
-rw-r--r--Source/cmFindBase.cxx4
-rw-r--r--Source/cmFindBase.h8
2 files changed, 4 insertions, 8 deletions
diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx
index bec99bb7ee..a1feeee546 100644
--- a/Source/cmFindBase.cxx
+++ b/Source/cmFindBase.cxx
@@ -22,10 +22,6 @@ class cmExecutionStatus;
cmFindBase::cmFindBase(cmExecutionStatus& status)
: cmFindCommon(status)
{
- this->AlreadyInCache = false;
- this->AlreadyInCacheWithoutMetaInfo = false;
- this->NamesPerDir = false;
- this->NamesPerDirAllowed = false;
}
bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn)
diff --git a/Source/cmFindBase.h b/Source/cmFindBase.h
index fce0b11896..c553dbd0fd 100644
--- a/Source/cmFindBase.h
+++ b/Source/cmFindBase.h
@@ -44,14 +44,14 @@ protected:
std::string VariableDocumentation;
std::string VariableName;
std::vector<std::string> Names;
- bool NamesPerDir;
- bool NamesPerDirAllowed;
+ bool NamesPerDir = false;
+ bool NamesPerDirAllowed = false;
// CMAKE_*_PATH CMAKE_SYSTEM_*_PATH FRAMEWORK|LIBRARY|INCLUDE|PROGRAM
std::string EnvironmentPath; // LIB,INCLUDE
- bool AlreadyInCache;
- bool AlreadyInCacheWithoutMetaInfo;
+ bool AlreadyInCache = false;
+ bool AlreadyInCacheWithoutMetaInfo = false;
private:
// Add pieces of the search.