summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGeneratorInitializer.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2016-11-30 12:30:59 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2016-12-06 14:59:27 (GMT)
commitbb8c96689fe692196e8f77df6d071656b161b47c (patch)
treefaec7edd21d2cf2de01ad0e1304c72fbda0d3efc /Source/cmQtAutoGeneratorInitializer.cxx
parent48180401d321e7fba19ac45e9e2e8a718c20d0b8 (diff)
downloadCMake-bb8c96689fe692196e8f77df6d071656b161b47c.zip
CMake-bb8c96689fe692196e8f77df6d071656b161b47c.tar.gz
CMake-bb8c96689fe692196e8f77df6d071656b161b47c.tar.bz2
QtAutogen: Make strings const
Diffstat (limited to 'Source/cmQtAutoGeneratorInitializer.cxx')
-rw-r--r--Source/cmQtAutoGeneratorInitializer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmQtAutoGeneratorInitializer.cxx b/Source/cmQtAutoGeneratorInitializer.cxx
index 384c336..4a7e814 100644
--- a/Source/cmQtAutoGeneratorInitializer.cxx
+++ b/Source/cmQtAutoGeneratorInitializer.cxx
@@ -429,7 +429,7 @@ static void RccMergeOptions(std::vector<std::string>& opts,
static bool RccListInputsQt5(cmSourceFile* sf, cmGeneratorTarget const* target,
std::vector<std::string>& depends)
{
- std::string rccCommand = RccGetExecutable(target);
+ const std::string rccCommand = RccGetExecutable(target);
bool hasDashDashList = false;
// Read rcc features
@@ -839,7 +839,7 @@ void cmQtAutoGeneratorInitializer::SetupAutoGenerateTarget(
static_cast<void>(varScope);
// create a custom target for running generators at buildtime:
- std::string autogenTargetName = GetAutogenTargetName(target);
+ const std::string autogenTargetName = GetAutogenTargetName(target);
makefile->AddDefinition(
"_moc_target_name",