mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
cmCMakePresetsGraph: better name for a local variable of PrintPresets
This commit is contained in:
1 parent
0f3347bb27
commit
427cf86cb8
1 file changed
+2
-2
@@ -513,13 +513,13 @@ void PrintPresets(
|
||||
return;
|
||||
}
|
||||
|
||||
auto longestPresetName =
|
||||
auto presetWithLongestName =
|
||||
std::max_element(presets.begin(), presets.end(),
|
||||
[](cmCMakePresetsGraph::Preset const* a,
|
||||
cmCMakePresetsGraph::Preset const* b) {
|
||||
return a->Name.length() < b->Name.length();
|
||||
});
|
||||
auto longestLength = (*longestPresetName)->Name.length();
|
||||
auto longestLength = (*presetWithLongestName)->Name.length();
|
||||
|
||||
for (auto const* preset : presets) {
|
||||
std::string name = cmStrCat(" \"", preset->Name, '"');
|
||||
|
||||
Reference in new issue
Block a user