diff options
author | Karol Kosek <krkk@serenityos.org> | 2023-03-10 20:04:43 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-16 09:58:42 +0100 |
commit | 5fed25ca9aa014372ccfbb79accb49663fc449e2 (patch) | |
tree | 2c55d12b13fd22d5f571db06bf13ed3520af95c0 /Userland/Applications/PixelPaint/ImageEditor.h | |
parent | 3805e4e3a9c102779420ed91342701487fee9979 (diff) | |
download | serenity-5fed25ca9aa014372ccfbb79accb49663fc449e2.zip |
PixelPaint: Port ImageEditor title to new string
Diffstat (limited to 'Userland/Applications/PixelPaint/ImageEditor.h')
-rw-r--r-- | Userland/Applications/PixelPaint/ImageEditor.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Userland/Applications/PixelPaint/ImageEditor.h b/Userland/Applications/PixelPaint/ImageEditor.h index 4b226993cd..c8228fc2aa 100644 --- a/Userland/Applications/PixelPaint/ImageEditor.h +++ b/Userland/Applications/PixelPaint/ImageEditor.h @@ -52,9 +52,8 @@ public: DeprecatedString const& path() const { return m_path; } void set_path(DeprecatedString); - DeprecatedString const& title() const { return m_title; } - void set_title(DeprecatedString); - void set_title(String const& title) { set_title(title.to_deprecated_string()); } + String const& title() const { return m_title; } + void set_title(String); void add_guide(NonnullRefPtr<Guide> guide) { m_guides.append(guide); } void remove_guide(Guide const& guide) @@ -83,7 +82,7 @@ public: Function<void(Layer*)> on_active_layer_change; - Function<void(DeprecatedString const&)> on_title_change; + Function<void(String const&)> on_title_change; Function<void(Gfx::IntPoint)> on_image_mouse_position_change; @@ -170,7 +169,7 @@ private: GUI::UndoStack m_undo_stack; DeprecatedString m_path; - DeprecatedString m_title; + String m_title; Vector<NonnullRefPtr<Guide>> m_guides; bool m_show_guides { true }; |