diff options
author | Linus Groh <mail@linusgroh.de> | 2022-12-04 18:02:33 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-06 08:54:33 +0100 |
commit | 6e19ab2bbce0b113b628e6f8e9b5c0640053933e (patch) | |
tree | 372d21b2f5dcff112f5d0089559c6af5798680d4 /Userland/Libraries/LibGUI/Window.h | |
parent | f74251606d74b504a1379ebb893fdb5529054ea5 (diff) | |
download | serenity-6e19ab2bbce0b113b628e6f8e9b5c0640053933e.zip |
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null
state), and while it's going to use UTF-8, the name UTF8String is a
mouthful - so let's free up the String name by renaming the existing
class.
Making the old one have an annoying name will hopefully also help with
quick adoption :^)
Diffstat (limited to 'Userland/Libraries/LibGUI/Window.h')
-rw-r--r-- | Userland/Libraries/LibGUI/Window.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibGUI/Window.h b/Userland/Libraries/LibGUI/Window.h index 2c8d8ec8ad..5ee920540f 100644 --- a/Userland/Libraries/LibGUI/Window.h +++ b/Userland/Libraries/LibGUI/Window.h @@ -6,9 +6,9 @@ #pragma once +#include <AK/DeprecatedString.h> #include <AK/Function.h> #include <AK/OwnPtr.h> -#include <AK/String.h> #include <AK/Variant.h> #include <AK/WeakPtr.h> #include <LibCore/Object.h> @@ -86,8 +86,8 @@ public: void make_window_manager(unsigned event_mask); - String title() const; - void set_title(String); + DeprecatedString title() const; + void set_title(DeprecatedString); enum class CloseRequestDecision { StayOpen, @@ -220,8 +220,8 @@ public: void did_disable_focused_widget(Badge<Widget>); - Menu& add_menu(String name); - ErrorOr<NonnullRefPtr<Menu>> try_add_menu(String name); + Menu& add_menu(DeprecatedString name); + ErrorOr<NonnullRefPtr<Menu>> try_add_menu(DeprecatedString name); ErrorOr<void> try_add_menu(NonnullRefPtr<Menu> menu); void flash_menubar_menu_for(MenuItem const&); @@ -295,7 +295,7 @@ private: WeakPtr<Widget> m_hovered_widget; Gfx::IntRect m_rect_when_windowless; Gfx::IntSize m_minimum_size_when_windowless { 0, 0 }; - String m_title_when_windowless; + DeprecatedString m_title_when_windowless; Vector<Gfx::IntRect, 32> m_pending_paint_event_rects; Gfx::IntSize m_size_increment; Gfx::IntSize m_base_size; |