Refactor: Eliminate redundant std::to_string as arg of cmStrCat

Plus optimize some other string operations in the modified files.
This commit is contained in:
Alex Turbov
2025-01-26 03:03:36 +04:00
parent 8eff0d3351
commit d34971f455
18 changed files with 103 additions and 137 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ bool cmFunctionHelperCommand::operator()(
// set the values for ARGV0 ARGV1 ...
for (auto t = 0u; t < expandedArgs.size(); ++t) {
auto const value = cmStrCat(ARGV, std::to_string(t));
auto const value = cmStrCat(ARGV, t);
makefile.AddDefinition(value, expandedArgs[t]);
makefile.MarkVariableAsUsed(value);
}