浏览代码

QtAutogen: Don't take a reference to temporary.

While a const reference to a temporary is standard conformant,
it doesn't seem to be necessary or advantageous here.
Stephen Kelly 11 年之前
父节点
当前提交
bf00f5287b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmQtAutoGenerators.cxx

+ 1 - 1
Source/cmQtAutoGenerators.cxx

@@ -1500,7 +1500,7 @@ void cmQtAutoGenerators::Init()
 
     if (this->IncludeProjectDirsBefore)
       {
-      const std::string &binDir = "-I" + this->ProjectBinaryDir;
+      const std::string binDir = "-I" + this->ProjectBinaryDir;
 
       const std::string srcDir = "-I" + this->ProjectSourceDir;