summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Statusbar.cpp
diff options
context:
space:
mode:
authorKarol Kosek <krkk@serenityos.org>2023-02-11 21:19:00 +0100
committerLinus Groh <mail@linusgroh.de>2023-02-13 00:45:09 +0000
commitb5cb9a9ebb0c1203b9f47479b7fc15f9af8e421e (patch)
tree8fd24fba4e3fd54d07ee61caeea4152901a5882f /Userland/Libraries/LibGUI/Statusbar.cpp
parentf802920a3aab0d553470176f11d13c42be3c5016 (diff)
downloadserenity-b5cb9a9ebb0c1203b9f47479b7fc15f9af8e421e.zip
LibGUI+TaskBar: Make Calendar::formatted_date() return ErrorOr<String>
This commit introduces no error propagation.
Diffstat (limited to 'Userland/Libraries/LibGUI/Statusbar.cpp')
-rw-r--r--Userland/Libraries/LibGUI/Statusbar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/Statusbar.cpp b/Userland/Libraries/LibGUI/Statusbar.cpp
index ab6cd6e697..911c878d2c 100644
--- a/Userland/Libraries/LibGUI/Statusbar.cpp
+++ b/Userland/Libraries/LibGUI/Statusbar.cpp
@@ -86,7 +86,7 @@ void Statusbar::update_segment(size_t index)
if (!text(i).is_empty())
m_segments[i].set_visible(true);
}
- segment.set_text_deprecated(segment.restored_text());
+ segment.set_text(String::from_utf8(segment.restored_text()).release_value_but_fixme_should_propagate_errors());
segment.set_frame_shape(Gfx::FrameShape::Panel);
if (segment.mode() != Segment::Mode::Proportional)
segment.set_fixed_width(segment.restored_width());
@@ -95,7 +95,7 @@ void Statusbar::update_segment(size_t index)
if (!m_segments[i].is_clickable())
m_segments[i].set_visible(false);
}
- segment.set_text_deprecated(segment.override_text());
+ segment.set_text(String::from_utf8(segment.override_text()).release_value_but_fixme_should_propagate_errors());
segment.set_frame_shape(Gfx::FrameShape::NoFrame);
if (segment.mode() != Segment::Mode::Proportional)
segment.set_fixed_width(SpecialDimension::Grow);