1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:57:44 +00:00

WindowServer: Make some WindowManager member functions const

This commit is contained in:
Shannon Booth 2020-05-18 22:09:54 +12:00 committed by Andreas Kling
parent 1048283186
commit d3eccf0409
2 changed files with 5 additions and 5 deletions

View file

@ -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)