diff options
author | FrHun <28605587+frhun@users.noreply.github.com> | 2022-06-12 22:35:17 +0200 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2022-06-28 17:52:42 +0100 |
commit | 8dd08d47f1ebf7f248be27279d6b3a68e4c3f9a1 (patch) | |
tree | e3b923bcf570a704dff7ed10bbede69b6e11c1ee /Userland/Services/Taskbar | |
parent | ec1e25929e79b34f2f602560280fe5f399bcc5d6 (diff) | |
download | serenity-8dd08d47f1ebf7f248be27279d6b3a68e4c3f9a1.zip |
Applications: Remove usages of deprecated implicit conversions
These deprecated conversions are currently in place to make the system
compile, but they are to be removed soon. This prepares that.
Diffstat (limited to 'Userland/Services/Taskbar')
-rw-r--r-- | Userland/Services/Taskbar/ClockWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/Taskbar/ClockWidget.cpp b/Userland/Services/Taskbar/ClockWidget.cpp index abbf982df9..4858105247 100644 --- a/Userland/Services/Taskbar/ClockWidget.cpp +++ b/Userland/Services/Taskbar/ClockWidget.cpp @@ -178,7 +178,7 @@ void ClockWidget::paint_event(GUI::PaintEvent& event) Gfx::Font const& font = Gfx::FontDatabase::default_font(); int const frame_width = frame_thickness(); int const ideal_width = m_time_width; - int const widget_width = max_width(); + int const widget_width = max_width().as_int(); int const translation_x = (widget_width - ideal_width) / 2 - frame_width; painter.draw_text(frame_inner_rect().translated(translation_x, frame_width), time_text, font, Gfx::TextAlignment::CenterLeft, palette().window_text()); |