cmFindBase: Use in-class member initialization

This commit is contained in:
Sylvain Joubert
2020-03-06 15:50:28 +01:00
parent 41162cbb81
commit cc070e66cd
2 changed files with 4 additions and 8 deletions

View File

@@ -22,10 +22,6 @@ class cmExecutionStatus;
cmFindBase::cmFindBase(cmExecutionStatus& status) cmFindBase::cmFindBase(cmExecutionStatus& status)
: cmFindCommon(status) : cmFindCommon(status)
{ {
this->AlreadyInCache = false;
this->AlreadyInCacheWithoutMetaInfo = false;
this->NamesPerDir = false;
this->NamesPerDirAllowed = false;
} }
bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn) bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn)

View File

@@ -44,14 +44,14 @@ protected:
std::string VariableDocumentation; std::string VariableDocumentation;
std::string VariableName; std::string VariableName;
std::vector<std::string> Names; std::vector<std::string> Names;
bool NamesPerDir; bool NamesPerDir = false;
bool NamesPerDirAllowed; bool NamesPerDirAllowed = false;
// CMAKE_*_PATH CMAKE_SYSTEM_*_PATH FRAMEWORK|LIBRARY|INCLUDE|PROGRAM // CMAKE_*_PATH CMAKE_SYSTEM_*_PATH FRAMEWORK|LIBRARY|INCLUDE|PROGRAM
std::string EnvironmentPath; // LIB,INCLUDE std::string EnvironmentPath; // LIB,INCLUDE
bool AlreadyInCache; bool AlreadyInCache = false;
bool AlreadyInCacheWithoutMetaInfo; bool AlreadyInCacheWithoutMetaInfo = false;
private: private:
// Add pieces of the search. // Add pieces of the search.