mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:17:45 +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:
parent
2e5c434e22
commit
cd7b4e813f
2 changed files with 15 additions and 14 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue