mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 11:25:08 +00:00
StringViewize a bunch of things -- mostly LibGUI
This commit is contained in:
parent
f9ba7adae2
commit
1024dfa81a
59 changed files with 129 additions and 139 deletions
|
@ -4,13 +4,13 @@
|
|||
#include <LibGUI/GButton.h>
|
||||
#include <stdio.h>
|
||||
|
||||
void GMessageBox::show(const String& text, const String& title, Type type, CObject* parent)
|
||||
void GMessageBox::show(const StringView& text, const StringView& title, Type type, CObject* parent)
|
||||
{
|
||||
GMessageBox box(text, title, type, parent);
|
||||
box.exec();
|
||||
}
|
||||
|
||||
GMessageBox::GMessageBox(const String& text, const String& title, Type type, CObject* parent)
|
||||
GMessageBox::GMessageBox(const StringView& text, const StringView& title, Type type, CObject* parent)
|
||||
: GDialog(parent)
|
||||
, m_text(text)
|
||||
, m_type(type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue