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
commit d3eccf0409
Notes: sideshowbarker 2024-07-19 06:31:17 +09:00
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)