Source: Use cmStrCat in place of string addition

This commit is contained in:
AJIOB
2025-12-07 11:47:52 +03:00
committed by Brad King
parent eb7a8f8e85
commit fe173b68f0
37 changed files with 227 additions and 202 deletions
+3 -4
View File
@@ -185,9 +185,8 @@ void cmExtraCodeLiteGenerator::CreateProjectFile(
{
std::string const& outputDir = lgs[0]->GetCurrentBinaryDirectory();
std::string projectName = lgs[0]->GetProjectName();
std::string filename = outputDir + "/";
std::string filename = cmStrCat(outputDir, '/', projectName, ".project");
filename += projectName + ".project";
this->CreateNewProjectFile(lgs, filename);
}
@@ -661,8 +660,8 @@ std::string cmExtraCodeLiteGenerator::GetCleanCommand(
std::string cmExtraCodeLiteGenerator::GetRebuildCommand(
cmMakefile const* mf, std::string const& targetName) const
{
return this->GetCleanCommand(mf, targetName) + " && " +
this->GetBuildCommand(mf, targetName);
return cmStrCat(this->GetCleanCommand(mf, targetName), " && ",
this->GetBuildCommand(mf, targetName));
}
std::string cmExtraCodeLiteGenerator::GetSingleFileBuildCommand(