1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:37:43 +00:00

LibGUI: Remove reference captures of stack variables in ProcessChooser

Since all reference-captured variables where pointers to non-stack
objects whose owners outlive the lambdas, things were fine in practice,
but it's a bit brittle and it makes a change I want to make in this code
more difficult.
This commit is contained in:
Nico Weber 2020-08-15 12:54:20 -04:00 committed by Andreas Kling
parent 2e5c434e22
commit cd7b4e813f
2 changed files with 15 additions and 14 deletions

View file

@ -47,6 +47,7 @@ private:
String m_window_title;
String m_button_label;
RefPtr<Gfx::Bitmap> m_window_icon;
RefPtr<TableView> m_table_view;
bool m_refresh_enabled { true };
unsigned m_refresh_interval { 1000 };