mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
WindowServer: Make some WindowManager member functions const
This commit is contained in:
parent
1048283186
commit
d3eccf0409
Notes:
sideshowbarker
2024-07-19 06:31:17 +09:00
Author: https://github.com/shannonbooth
Commit: d3eccf0409
Pull-request: https://github.com/SerenityOS/serenity/pull/2282
2 changed files with 5 additions and 5 deletions
|
@ -212,7 +212,7 @@ void WindowSwitcher::draw()
|
|||
void WindowSwitcher::refresh()
|
||||
{
|
||||
auto& wm = WindowManager::the();
|
||||
Window* selected_window = nullptr;
|
||||
const Window* selected_window = nullptr;
|
||||
if (m_selected_index > 0 && m_windows[m_selected_index])
|
||||
selected_window = m_windows[m_selected_index].ptr();
|
||||
if (!selected_window)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue