summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objserv.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx
index fedbfb205d92..8340e4808fb8 100644
--- a/sfx2/source/doc/objserv.cxx
+++ b/sfx2/source/doc/objserv.cxx
@@ -712,10 +712,10 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq)
if (!rReq.IsSynchronCall())
{
- std::shared_ptr<SfxRequest> pReq = std::make_shared<SfxRequest>(rReq);
- SfxTabDialogController::runAsync(xDlg, [pReq, aFunc](sal_Int32 nResult)
+ std::shared_ptr<SfxRequest> xReq = std::make_shared<SfxRequest>(rReq);
+ SfxTabDialogController::runAsync(xDlg, [xReq=std::move(xReq), aFunc](sal_Int32 nResult)
{
- aFunc(nResult, *pReq);
+ aFunc(nResult, *xReq);
});
rReq.Ignore();
}