mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
cmQtAutoGenInitializer: Improve Const-Correctness
This commit is contained in:
@@ -904,13 +904,13 @@ bool cmQtAutoGenInitializer::InitScanFiles()
|
|||||||
if (muf.MocIt || muf.UicIt) {
|
if (muf.MocIt || muf.UicIt) {
|
||||||
// Search for the default header file and a private header
|
// Search for the default header file and a private header
|
||||||
std::string const& srcFullPath = muf.SF->ResolveFullPath();
|
std::string const& srcFullPath = muf.SF->ResolveFullPath();
|
||||||
std::string basePath = cmStrCat(
|
std::string const basePath = cmStrCat(
|
||||||
cmQtAutoGen::SubDirPrefix(srcFullPath),
|
cmQtAutoGen::SubDirPrefix(srcFullPath),
|
||||||
cmSystemTools::GetFilenameWithoutLastExtension(srcFullPath));
|
cmSystemTools::GetFilenameWithoutLastExtension(srcFullPath));
|
||||||
for (auto const& suffix : suffixes) {
|
for (auto const& suffix : suffixes) {
|
||||||
std::string const suffixedPath = cmStrCat(basePath, suffix);
|
std::string const suffixedPath = cmStrCat(basePath, suffix);
|
||||||
for (auto const& ext : exts) {
|
for (auto const& ext : exts) {
|
||||||
std::string fullPath = cmStrCat(suffixedPath, '.', ext);
|
std::string const fullPath = cmStrCat(suffixedPath, '.', ext);
|
||||||
|
|
||||||
auto constexpr locationKind = cmSourceFileLocationKind::Known;
|
auto constexpr locationKind = cmSourceFileLocationKind::Known;
|
||||||
cmSourceFile* sf =
|
cmSourceFile* sf =
|
||||||
@@ -1535,7 +1535,8 @@ bool cmQtAutoGenInitializer::InitRccTargets()
|
|||||||
cmMakeCommandLine({ cmSystemTools::GetCMakeCommand(), "-E",
|
cmMakeCommandLine({ cmSystemTools::GetCMakeCommand(), "-E",
|
||||||
"cmake_autorcc", qrc.InfoFile, "$<CONFIG>" }));
|
"cmake_autorcc", qrc.InfoFile, "$<CONFIG>" }));
|
||||||
}
|
}
|
||||||
std::string ccComment =
|
|
||||||
|
std::string const ccComment =
|
||||||
cmStrCat("Automatic RCC for ",
|
cmStrCat("Automatic RCC for ",
|
||||||
FileProjectRelativePath(this->Makefile, qrc.QrcFile));
|
FileProjectRelativePath(this->Makefile, qrc.QrcFile));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user