summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenerators.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-11-13 23:03:28 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-11-18 22:20:40 (GMT)
commitbf00f5287b2d0cc2dbd175ab25e7cafbda944f23 (patch)
tree8224c63ad587df840af61e3907c7c9deaa6381b5 /Source/cmQtAutoGenerators.cxx
parentd526ebc603b0a83a7a1602ed4ddcf1b483077cf4 (diff)
downloadCMake-bf00f5287b2d0cc2dbd175ab25e7cafbda944f23.zip
CMake-bf00f5287b2d0cc2dbd175ab25e7cafbda944f23.tar.gz
CMake-bf00f5287b2d0cc2dbd175ab25e7cafbda944f23.tar.bz2
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.
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r--Source/cmQtAutoGenerators.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx
index 929cbc0..3d6445d 100644
--- a/Source/cmQtAutoGenerators.cxx
+++ b/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;