summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorOrkun Tokdemir <ilhanorkuntokdemir@gmail.com>2023-07-06 15:42:22 (GMT)
committerOrkun Tokdemir <ilhanorkuntokdemir@gmail.com>2023-09-13 13:58:47 (GMT)
commit94c4c1cb2810d15cb1cfe706e4c9afef84560d04 (patch)
treea5848ed5feb7b8990e7d247f0e291704a1e3ff2f /Source
parent6d54c368599e379208f8f8e057a1724ac785d151 (diff)
downloadCMake-94c4c1cb2810d15cb1cfe706e4c9afef84560d04.zip
CMake-94c4c1cb2810d15cb1cfe706e4c9afef84560d04.tar.gz
CMake-94c4c1cb2810d15cb1cfe706e4c9afef84560d04.tar.bz2
cmQtAutoGenInitializer: Improve Const-Correctness
Diffstat (limited to 'Source')
-rw-r--r--Source/cmQtAutoGenInitializer.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmQtAutoGenInitializer.cxx b/Source/cmQtAutoGenInitializer.cxx
index 6ba5116..a0308ce 100644
--- a/Source/cmQtAutoGenInitializer.cxx
+++ b/Source/cmQtAutoGenInitializer.cxx
@@ -904,13 +904,13 @@ bool cmQtAutoGenInitializer::InitScanFiles()
if (muf.MocIt || muf.UicIt) {
// Search for the default header file and a private header
std::string const& srcFullPath = muf.SF->ResolveFullPath();
- std::string basePath = cmStrCat(
+ std::string const basePath = cmStrCat(
cmQtAutoGen::SubDirPrefix(srcFullPath),
cmSystemTools::GetFilenameWithoutLastExtension(srcFullPath));
for (auto const& suffix : suffixes) {
std::string const suffixedPath = cmStrCat(basePath, suffix);
for (auto const& ext : exts) {
- std::string fullPath = cmStrCat(suffixedPath, '.', ext);
+ std::string const fullPath = cmStrCat(suffixedPath, '.', ext);
auto constexpr locationKind = cmSourceFileLocationKind::Known;
cmSourceFile* sf =
@@ -1535,7 +1535,8 @@ bool cmQtAutoGenInitializer::InitRccTargets()
cmMakeCommandLine({ cmSystemTools::GetCMakeCommand(), "-E",
"cmake_autorcc", qrc.InfoFile, "$<CONFIG>" }));
}
- std::string ccComment =
+
+ std::string const ccComment =
cmStrCat("Automatic RCC for ",
FileProjectRelativePath(this->Makefile, qrc.QrcFile));