diff --git a/Userland/Applications/PDFViewer/PDFViewerWidget.cpp b/Userland/Applications/PDFViewer/PDFViewerWidget.cpp index ee552cd588..2f60ae1a4a 100644 --- a/Userland/Applications/PDFViewer/PDFViewerWidget.cpp +++ b/Userland/Applications/PDFViewer/PDFViewerWidget.cpp @@ -338,7 +338,7 @@ void PDFViewerWidget::open_file(Core::File& file) { window()->set_title(DeprecatedString::formatted("{} - PDF Viewer", file.filename())); - auto handle_error = [&](PDF::PDFErrorOr maybe_error) { + auto handle_error = [&](auto&& maybe_error) { if (maybe_error.is_error()) { auto error = maybe_error.release_error(); warnln("{}", error.message());