mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user