From cc070e66cd9bd0d4e0ce56ad9dd307dbb854e61f Mon Sep 17 00:00:00 2001 From: Sylvain Joubert Date: Fri, 6 Mar 2020 15:50:28 +0100 Subject: cmFindBase: Use in-class member initialization --- Source/cmFindBase.cxx | 4 ---- Source/cmFindBase.h | 8 ++++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx index bec99bb..a1feeee 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 const& argsIn) diff --git a/Source/cmFindBase.h b/Source/cmFindBase.h index fce0b11..c553dbd 100644 --- a/Source/cmFindBase.h +++ b/Source/cmFindBase.h @@ -44,14 +44,14 @@ protected: std::string VariableDocumentation; std::string VariableName; std::vector 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. -- cgit v0.12