From 37853f25b71ef92ca1e5f2d612e5601ebd08cb30 Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Sun, 15 Mar 2026 02:45:21 +0400 Subject: [PATCH] cmCMakePresetsGraph: `class` -> `typename` in template declarations --- Source/cmCMakePresetsGraph.cxx | 8 ++++---- Source/cmCMakePresetsGraphInternal.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/cmCMakePresetsGraph.cxx b/Source/cmCMakePresetsGraph.cxx index 18a8a1ec1c..4a93eaa876 100644 --- a/Source/cmCMakePresetsGraph.cxx +++ b/Source/cmCMakePresetsGraph.cxx @@ -100,7 +100,7 @@ void InheritMap(std::map& child, * that each preset has the required fields, either directly or through * inheritance. */ -template +template bool VisitPreset( T& preset, std::map>& presets, @@ -178,7 +178,7 @@ bool VisitPreset( return true; } -template +template bool ComputePresetInheritance( std::map>& presets, cmCMakePresetsGraph& graph) @@ -222,7 +222,7 @@ bool IsValidMacroNamespace(std::string const& str) ExpandMacroResult VisitEnv(std::string& value, CycleStatus& status, MacroExpanderVector const& macroExpanders, int version); -template +template class EnvironmentMacroExpander : public MacroExpander { std::map& EnvCycles; @@ -428,7 +428,7 @@ bool CheckExpandMacros(WorkflowPreset const& /*preset*/, return true; } -template +template bool ExpandMacros(cmCMakePresetsGraph* graph, T const& preset, cm::optional& out) { diff --git a/Source/cmCMakePresetsGraphInternal.h b/Source/cmCMakePresetsGraphInternal.h index 82d4514209..961f866878 100644 --- a/Source/cmCMakePresetsGraphInternal.h +++ b/Source/cmCMakePresetsGraphInternal.h @@ -84,7 +84,7 @@ public: int version) const override; }; -template +template class PresetMacroExpander : public MacroExpander { cmCMakePresetsGraph const& Graph;