From 475cef8afd55fa2afb1f263a2807537283c2e59a Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sun, 21 Jan 2024 08:54:24 -0500 Subject: [PATCH] PDFViewer: Remove an unneeded indirection No behavior change. --- Userland/Applications/PDFViewer/PDFViewerWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/PDFViewer/PDFViewerWidget.cpp b/Userland/Applications/PDFViewer/PDFViewerWidget.cpp index 84260eaaf52..2ae9591a27e 100644 --- a/Userland/Applications/PDFViewer/PDFViewerWidget.cpp +++ b/Userland/Applications/PDFViewer/PDFViewerWidget.cpp @@ -256,7 +256,7 @@ ErrorOr PDFViewerWidget::initialize_menubar(GUI::Window& window) m_viewer->set_show_images(action.is_checked()); }); toggle_show_images->set_checked(m_viewer->show_images()); - debug_menu->add_action(*toggle_show_images); + debug_menu->add_action(toggle_show_images); auto toggle_clip_images = GUI::Action::create_checkable("Clip I&mages", [&](auto& action) { m_viewer->set_clip_images(action.is_checked()); });