From e39adc4772dbc575fc8209130129270ceea24229 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Sat, 11 Feb 2023 20:51:04 +0100 Subject: Userland: Set Button text using the new String class --- Userland/Libraries/LibGUI/ProcessChooser.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Userland/Libraries/LibGUI/ProcessChooser.h') diff --git a/Userland/Libraries/LibGUI/ProcessChooser.h b/Userland/Libraries/LibGUI/ProcessChooser.h index d684103b03..5c7e79eef3 100644 --- a/Userland/Libraries/LibGUI/ProcessChooser.h +++ b/Userland/Libraries/LibGUI/ProcessChooser.h @@ -7,6 +7,7 @@ #pragma once +#include #include #include #include @@ -22,14 +23,14 @@ public: pid_t pid() const { return m_pid; } private: - ProcessChooser(StringView window_title = "Process Chooser"sv, StringView button_label = "Select"sv, Gfx::Bitmap const* window_icon = nullptr, GUI::Window* parent_window = nullptr); + ProcessChooser(StringView window_title = "Process Chooser"sv, String button_label = String::from_utf8_short_string("Select"sv), Gfx::Bitmap const* window_icon = nullptr, GUI::Window* parent_window = nullptr); void set_pid_from_index_and_close(ModelIndex const&); pid_t m_pid { 0 }; DeprecatedString m_window_title; - DeprecatedString m_button_label; + String m_button_label; RefPtr m_window_icon; RefPtr m_table_view; RefPtr m_process_model; -- cgit v1.2.3