瀏覽代碼

Autogen: Inline string generation

Sebastian Holtermann 8 年之前
父節點
當前提交
074534a56d
共有 1 個文件被更改,包括 2 次插入5 次删除
  1. 2 5
      Source/cmQtAutoGenerators.cxx

+ 2 - 5
Source/cmQtAutoGenerators.cxx

@@ -1131,11 +1131,8 @@ bool cmQtAutoGenerators::MocGenerateAll(
   }
 
   // Actually write moc_compilation.cpp
-  {
-    std::string msg = "Generating MOC compilation ";
-    msg += this->OutMocCppFilenameRel;
-    this->LogBold(msg);
-  }
+  this->LogBold("Generating MOC compilation " + this->OutMocCppFilenameRel);
+
   // Make sure the parent directory exists
   bool success = this->MakeParentDirectory(this->OutMocCppFilenameAbs);
   if (success) {