summaryrefslogtreecommitdiff
path: root/Userland/Applications/PDFViewer
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2023-04-29 10:41:48 -0400
committerAndreas Kling <kling@serenityos.org>2023-04-30 05:48:14 +0200
commit91bafc2653bcbcc0b8d05b5589324375b92f91b5 (patch)
tree3ebc611c104c9c1c47c4b85b594e36f91c66c026 /Userland/Applications/PDFViewer
parent3d53dc82283e7eccf7a27918dbbcd391dc4988f7 (diff)
downloadserenity-91bafc2653bcbcc0b8d05b5589324375b92f91b5.zip
LibGUI+Userland: Port Labels to String
Diffstat (limited to 'Userland/Applications/PDFViewer')
-rw-r--r--Userland/Applications/PDFViewer/PDFViewerWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/PDFViewer/PDFViewerWidget.cpp b/Userland/Applications/PDFViewer/PDFViewerWidget.cpp
index c35f5bc731..b3d0a5ea49 100644
--- a/Userland/Applications/PDFViewer/PDFViewerWidget.cpp
+++ b/Userland/Applications/PDFViewer/PDFViewerWidget.cpp
@@ -387,7 +387,7 @@ PDF::PDFErrorOr<void> PDFViewerWidget::try_open_file(StringView path, NonnullOwn
TRY(document->initialize());
TRY(m_viewer->set_document(document));
- m_total_page_label->set_text(DeprecatedString::formatted("of {}", document->get_page_count()));
+ m_total_page_label->set_text(TRY(String::formatted("of {}", document->get_page_count())));
m_page_text_box->set_enabled(true);
m_page_text_box->set_current_number(1, GUI::AllowCallback::No);