From 0fe41d7db849b3060fc5c34e84b6c33fd8c0ecca Mon Sep 17 00:00:00 2001 From: Carlos Zamora Date: Tue, 12 May 2026 15:12:04 -0700 Subject: [PATCH] const --- src/cascadia/TerminalSettingsEditor/Utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cascadia/TerminalSettingsEditor/Utils.h b/src/cascadia/TerminalSettingsEditor/Utils.h index 6ad7bfff7d..3e86fdc34c 100644 --- a/src/cascadia/TerminalSettingsEditor/Utils.h +++ b/src/cascadia/TerminalSettingsEditor/Utils.h @@ -158,7 +158,7 @@ struct HasScrollViewer // the next dispatcher tick so the target's final layout // position is known before we scroll/focus. page->Dispatcher().RunAsync(winrt::Windows::UI::Core::CoreDispatcherPriority::Normal, [weakControl{ winrt::weak_ref{ controlToFocus } }]() { - if (auto control = weakControl.get()) + if (const auto control = weakControl.get()) { control.UpdateLayout(); control.StartBringIntoView();