summaryrefslogtreecommitdiff
path: root/vcl/source/window/printdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/printdlg.cxx')
-rw-r--r--vcl/source/window/printdlg.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index b2b3cf67a46d..87ee7f0891c2 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -24,6 +24,7 @@
#include <unotools/localedatawrapper.hxx>
#include <officecfg/Office/Common.hxx>
+#include <utility>
#include <vcl/QueueInfo.hxx>
#include <vcl/commandevent.hxx>
#include <vcl/decoview.hxx>
@@ -526,9 +527,9 @@ Size const & PrintDialog::getJobPageSize()
return maFirstPageSize;
}
-PrintDialog::PrintDialog(weld::Window* i_pWindow, const std::shared_ptr<PrinterController>& i_rController)
+PrintDialog::PrintDialog(weld::Window* i_pWindow, std::shared_ptr<PrinterController> i_xController)
: GenericDialogController(i_pWindow, "vcl/ui/printdialog.ui", "PrintDialog")
- , maPController( i_rController )
+ , maPController(std::move( i_xController ))
, mxTabCtrl(m_xBuilder->weld_notebook("tabcontrol"))
, mxScrolledWindow(m_xBuilder->weld_scrolled_window("scrolledwindow"))
, mxPageLayoutFrame(m_xBuilder->weld_frame("layoutframe"))