From de1516a8d822f72bddfb158126b6e609afc63c64 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 8 Jul 2025 11:52:44 +1000 Subject: Replace on_scope_end with CTAD with OnScopeEnd directly --- src/command_manager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/command_manager.cc') diff --git a/src/command_manager.cc b/src/command_manager.cc index 0db97e94..28c9f075 100644 --- a/src/command_manager.cc +++ b/src/command_manager.cc @@ -82,7 +82,7 @@ void CommandManager::load_module(StringView module_name, Context& context) { module->value.state = Module::State::Loading; - auto restore_state = on_scope_end([&] { module->value.state = Module::State::Registered; }); + auto restore_state = OnScopeEnd([&] { module->value.state = Module::State::Registered; }); Context empty_context{Context::EmptyContextFlag{}}; execute(module->value.commands, empty_context); @@ -526,7 +526,7 @@ void CommandManager::execute_single_command(CommandParameters params, throw runtime_error("maximum nested command depth hit"); ++m_command_depth; - auto pop_depth = on_scope_end([this] { --m_command_depth; }); + auto pop_depth = OnScopeEnd([this] { --m_command_depth; }); auto command_it = m_commands.find(resolve_alias(context, params[0])); if (command_it == m_commands.end()) -- cgit v1.2.3