浏览代码

cmGeneratorExpressionDAGChecker: Simplify member initialization

Brad King 1 年之前
父节点
当前提交
304f4c261e
共有 2 个文件被更改,包括 2 次插入4 次删除
  1. 0 2
      Source/cmGeneratorExpressionDAGChecker.cxx
  2. 2 2
      Source/cmGeneratorExpressionDAGChecker.h

+ 0 - 2
Source/cmGeneratorExpressionDAGChecker.cxx

@@ -35,8 +35,6 @@ cmGeneratorExpressionDAGChecker::cmGeneratorExpressionDAGChecker(
   , Property(std::move(property))
   , Content(content)
   , Backtrace(std::move(backtrace))
-  , TransitivePropertiesOnly(false)
-  , CMP0131(false)
 {
   const auto* top = this->Top();
   this->CheckResult = this->CheckGraph();

+ 2 - 2
Source/cmGeneratorExpressionDAGChecker.h

@@ -107,6 +107,6 @@ private:
   const GeneratorExpressionContent* const Content;
   const cmListFileBacktrace Backtrace;
   Result CheckResult;
-  bool TransitivePropertiesOnly;
-  bool CMP0131;
+  bool TransitivePropertiesOnly = false;
+  bool CMP0131 = false;
 };