From bf00f5287b2d0cc2dbd175ab25e7cafbda944f23 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Fri, 14 Nov 2014 00:03:28 +0100 Subject: [PATCH] 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. --- Source/cmQtAutoGenerators.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index 929cbc0be9..3d6445d292 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;