Преглед изворни кода

cmFindBase: Use in-class member initialization

Sylvain Joubert пре 5 година
родитељ
комит
cc070e66cd
2 измењених фајлова са 4 додато и 8 уклоњено
  1. 0 4
      Source/cmFindBase.cxx
  2. 4 4
      Source/cmFindBase.h

+ 0 - 4
Source/cmFindBase.cxx

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

+ 4 - 4
Source/cmFindBase.h

@@ -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 NamesPerDirAllowed;
+  bool NamesPerDir = false;
+  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 AlreadyInCacheWithoutMetaInfo;
+  bool AlreadyInCache = false;
+  bool AlreadyInCacheWithoutMetaInfo = false;
 
 
 private:
 private:
   // Add pieces of the search.
   // Add pieces of the search.