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)
: cmFindCommon(status)
{
this->AlreadyInCache = false;
this->AlreadyInCacheWithoutMetaInfo = false;
this->NamesPerDir = false;
this->NamesPerDirAllowed = false;
}
bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn)

View File

@ -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.