cmCMakePresetsGraph: better name for a local variable of PrintPresets

This commit is contained in:
Alex Turbov committed 2026-04-11 21:36:44 +04:00
1 parent 0f3347bb27
commit 427cf86cb8
1 file changed
+2 -2
+2 -2
View File
@@ -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, '"');