mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 14:05:15 +00:00
LibGUI: Use east const style in InputBox.{cpp,h}
This commit is contained in:
parent
2483a78313
commit
3fce0e58e5
Notes:
sideshowbarker
2024-07-18 10:14:28 +09:00
Author: https://github.com/networkException Commit: https://github.com/SerenityOS/serenity/commit/3fce0e58e51 Pull-request: https://github.com/SerenityOS/serenity/pull/8498 Reviewed-by: https://github.com/MaxWipfli
2 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
InputBox::InputBox(Window* parent_window, String& text_value, const StringView& prompt, const StringView& title, const StringView& placeholder)
|
InputBox::InputBox(Window* parent_window, String& text_value, StringView const& prompt, StringView const& title, StringView const& placeholder)
|
||||||
: Dialog(parent_window)
|
: Dialog(parent_window)
|
||||||
, m_text_value(text_value)
|
, m_text_value(text_value)
|
||||||
, m_prompt(prompt)
|
, m_prompt(prompt)
|
||||||
|
@ -29,7 +29,7 @@ InputBox::~InputBox()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int InputBox::show(Window* parent_window, String& text_value, const StringView& prompt, const StringView& title, const StringView& placeholder)
|
int InputBox::show(Window* parent_window, String& text_value, StringView const& prompt, StringView const& title, StringView const& placeholder)
|
||||||
{
|
{
|
||||||
auto box = InputBox::construct(parent_window, text_value, prompt, title, placeholder);
|
auto box = InputBox::construct(parent_window, text_value, prompt, title, placeholder);
|
||||||
box->set_resizable(false);
|
box->set_resizable(false);
|
||||||
|
|
|
@ -16,10 +16,10 @@ class InputBox : public Dialog {
|
||||||
public:
|
public:
|
||||||
virtual ~InputBox() override;
|
virtual ~InputBox() override;
|
||||||
|
|
||||||
static int show(Window* parent_window, String& text_value, const StringView& prompt, const StringView& title, const StringView& placeholder = {});
|
static int show(Window* parent_window, String& text_value, StringView const& prompt, StringView const& title, StringView const& placeholder = {});
|
||||||
|
|
||||||
private:
|
private:
|
||||||
explicit InputBox(Window* parent_window, String& text_value, const StringView& prompt, const StringView& title, const StringView& placeholder);
|
explicit InputBox(Window* parent_window, String& text_value, StringView const& prompt, StringView const& title, StringView const& placeholder);
|
||||||
|
|
||||||
String text_value() const { return m_text_value; }
|
String text_value() const { return m_text_value; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue