mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 17:58:12 +00:00
Everywhere: Remove unnecessary mutable attributes from lambdas
These lambdas were marked mutable as they captured a Ptr wrapper class by value, which then only returned const-qualified references to the value they point from the previous const pointer operators. Nothing is actually mutating in the lambdas state here, and now that the Ptr operators don't add extra const qualifiers these can be removed.
This commit is contained in:
parent
66a428ae03
commit
8a5d2be617
30 changed files with 68 additions and 68 deletions
|
@ -234,7 +234,7 @@ void ConnectionFromClient::flash_menubar_menu(i32 window_id, i32 menu_id)
|
|||
m_flashed_menu_timer->stop();
|
||||
}
|
||||
|
||||
m_flashed_menu_timer = Core::Timer::create_single_shot(75, [weak_window = window.make_weak_ptr<Window>()]() mutable {
|
||||
m_flashed_menu_timer = Core::Timer::create_single_shot(75, [weak_window = window.make_weak_ptr<Window>()] {
|
||||
if (!weak_window)
|
||||
return;
|
||||
weak_window->menubar().flash_menu(nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue