summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGeneratorInitializer.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-05-28 13:13:06 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-05-28 13:13:12 (GMT)
commitf8642f953d3d8547bd31fcb35a4737fa91d9126f (patch)
tree1a56170d6d43c1515b49142c7223ea06eb7faa5d /Source/cmQtAutoGeneratorInitializer.cxx
parentf9ea6247c10fa0b39977f9b75d266e7282b19a1b (diff)
parent2c2bb5f527b4c0e0eca7867492c046be23818c9a (diff)
downloadCMake-f8642f953d3d8547bd31fcb35a4737fa91d9126f.zip
CMake-f8642f953d3d8547bd31fcb35a4737fa91d9126f.tar.gz
CMake-f8642f953d3d8547bd31fcb35a4737fa91d9126f.tar.bz2
Merge topic 'reduce-string-copying'
2c2bb5f5 Remove unnecessary operator<< usage 1e4e2f99 Remove unused variables 25486156 Improved checking for number of arguments passed 86dc86dd Add const-reference qualifications 76bdb407 Change std::basic_string<char> to std::string Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !886
Diffstat (limited to 'Source/cmQtAutoGeneratorInitializer.cxx')
-rw-r--r--Source/cmQtAutoGeneratorInitializer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmQtAutoGeneratorInitializer.cxx b/Source/cmQtAutoGeneratorInitializer.cxx
index 6b85c66..e82665b 100644
--- a/Source/cmQtAutoGeneratorInitializer.cxx
+++ b/Source/cmQtAutoGeneratorInitializer.cxx
@@ -825,7 +825,7 @@ void cmQtAutoGeneratorInitializer::InitializeAutogenTarget(
fileIt != srcFiles.end(); ++fileIt) {
cmSourceFile* sf = *fileIt;
if (!PropertyEnabled(sf, "SKIP_AUTOGEN")) {
- const std::string ext = sf->GetExtension();
+ std::string const& ext = sf->GetExtension();
// Add generated file that will be scanned by moc or uic to
// the dependencies
if (mocEnabled || uicEnabled) {