summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2021-07-07 14:31:33 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-07 15:29:03 +0200
commit3fce0e58e51e268d9ef1e09665a9fe9dac2ba340 (patch)
treecfb5f18df64364d79a0ce6624271039d99f2b291 /Userland/Libraries/LibGUI
parent2483a78313000ec0036600a4e8b4d18be9b7fcd8 (diff)
downloadserenity-3fce0e58e51e268d9ef1e09665a9fe9dac2ba340.zip
LibGUI: Use east const style in InputBox.{cpp,h}
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r--Userland/Libraries/LibGUI/InputBox.cpp4
-rw-r--r--Userland/Libraries/LibGUI/InputBox.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibGUI/InputBox.cpp b/Userland/Libraries/LibGUI/InputBox.cpp
index 3ea6f03a2e..513c2199ac 100644
--- a/Userland/Libraries/LibGUI/InputBox.cpp
+++ b/Userland/Libraries/LibGUI/InputBox.cpp
@@ -15,7 +15,7 @@
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)
, m_text_value(text_value)
, 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);
box->set_resizable(false);
diff --git a/Userland/Libraries/LibGUI/InputBox.h b/Userland/Libraries/LibGUI/InputBox.h
index 1bc1d877d0..5fce685df7 100644
--- a/Userland/Libraries/LibGUI/InputBox.h
+++ b/Userland/Libraries/LibGUI/InputBox.h
@@ -16,10 +16,10 @@ class InputBox : public Dialog {
public:
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:
- 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; }