include/sfx2/dialogrequesthelper.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 73ff549a3bdb7607fafa13013383f1b2997731bc Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sun Jun 8 10:42:19 2025 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sun Jun 8 18:53:46 2025 +0200 cid#1648523 COPY_INSTEAD_OF_MOVE Change-Id: Ie74cec664345f9d7a5b2007127f95e96d640d1b8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186261 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/include/sfx2/dialogrequesthelper.hxx b/include/sfx2/dialogrequesthelper.hxx index 6273a3c5bdd2..714f4f26cb72 100644 --- a/include/sfx2/dialogrequesthelper.hxx +++ b/include/sfx2/dialogrequesthelper.hxx @@ -27,7 +27,7 @@ namespace sfx2 // for use in request handlers. template <class Fn> requires(std::is_invocable_v<Fn, sal_Int32, SfxRequest&>) void ExecDialogPerRequestAndDispose( - VclPtr<VclAbstractDialog> dlg, SfxRequest& req, Fn endDialogFn) + const VclPtr<VclAbstractDialog>& dlg, SfxRequest& req, const Fn& endDialogFn) { if (req.GetCallMode() & SfxCallMode::SYNCHRON) {