summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Label.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-12-04 18:02:33 +0000
committerAndreas Kling <kling@serenityos.org>2022-12-06 08:54:33 +0100
commit6e19ab2bbce0b113b628e6f8e9b5c0640053933e (patch)
tree372d21b2f5dcff112f5d0089559c6af5798680d4 /Userland/Libraries/LibGUI/Label.cpp
parentf74251606d74b504a1379ebb893fdb5529054ea5 (diff)
downloadserenity-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/Label.cpp')
-rw-r--r--Userland/Libraries/LibGUI/Label.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGUI/Label.cpp b/Userland/Libraries/LibGUI/Label.cpp
index df0ace8e4c..6ca9e59511 100644
--- a/Userland/Libraries/LibGUI/Label.cpp
+++ b/Userland/Libraries/LibGUI/Label.cpp
@@ -17,7 +17,7 @@ REGISTER_WIDGET(GUI, Label)
namespace GUI {
-Label::Label(String text)
+Label::Label(DeprecatedString text)
: m_text(move(text))
{
REGISTER_TEXT_ALIGNMENT_PROPERTY("text_alignment", text_alignment, set_text_alignment);
@@ -55,7 +55,7 @@ void Label::set_icon(Gfx::Bitmap const* icon)
update();
}
-void Label::set_icon_from_path(String const& path)
+void Label::set_icon_from_path(DeprecatedString const& path)
{
auto maybe_bitmap = Gfx::Bitmap::try_load_from_file(path);
if (maybe_bitmap.is_error()) {
@@ -65,7 +65,7 @@ void Label::set_icon_from_path(String const& path)
set_icon(maybe_bitmap.release_value());
}
-void Label::set_text(String text)
+void Label::set_text(DeprecatedString text)
{
if (text == m_text)
return;