diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2016-11-30 12:30:59 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2016-12-06 14:59:27 (GMT) |
commit | bb8c96689fe692196e8f77df6d071656b161b47c (patch) | |
tree | faec7edd21d2cf2de01ad0e1304c72fbda0d3efc /Source/cmQtAutoGeneratorInitializer.cxx | |
parent | 48180401d321e7fba19ac45e9e2e8a718c20d0b8 (diff) | |
download | CMake-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.cxx | 4 |
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", |