mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-16 15:21:56 +00:00
LibGUI: Don't create GMessageBox and GInputBox on the stack
We need to get rid of all instances of widgets-on-the-stack since that will no longer work in the ref-counting world.
This commit is contained in:
parent
defafd72bc
commit
31b38ed88f
Notes:
sideshowbarker
2024-07-19 12:00:56 +09:00
Author: https://github.com/awesomekling
Commit: 31b38ed88f
7 changed files with 30 additions and 33 deletions
|
@ -4,10 +4,10 @@
|
|||
#include <LibGUI/GMessageBox.h>
|
||||
#include <stdio.h>
|
||||
|
||||
void GMessageBox::show(const StringView& text, const StringView& title, Type type, InputType input_type, CObject* parent)
|
||||
int GMessageBox::show(const StringView& text, const StringView& title, Type type, InputType input_type, CObject* parent)
|
||||
{
|
||||
GMessageBox box(text, title, type, input_type, parent);
|
||||
box.exec();
|
||||
auto box = GMessageBox::construct(text, title, type, input_type, parent);
|
||||
return box->exec();
|
||||
}
|
||||
|
||||
GMessageBox::GMessageBox(const StringView& text, const StringView& title, Type type, InputType input_type, CObject* parent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue