sc/source/ui/view/tabvwshb.cxx |    2 +-
 svx/source/dialog/grfflt.cxx   |    5 +----
 2 files changed, 2 insertions(+), 5 deletions(-)

New commits:
commit cd3286cdc79765229d3e58ed35b3866baca9da18
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Tue Jan 30 13:30:56 2024 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Tue Jan 30 17:01:56 2024 +0100

    cid#1588084 COPY_INSTEAD_OF_MOVE
    
    and
    
    cid#1591435 COPY_INSTEAD_OF_MOVE
    
    Change-Id: Iad16a56259b01a67baf1f9ed879c27d3a648b879
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162751
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sc/source/ui/view/tabvwshb.cxx b/sc/source/ui/view/tabvwshb.cxx
index a4f43f1d2302..ef83feb805b3 100644
--- a/sc/source/ui/view/tabvwshb.cxx
+++ b/sc/source/ui/view/tabvwshb.cxx
@@ -525,7 +525,7 @@ void ScTabViewShell::ExecDrawIns(SfxRequest& rReq)
                 auto xRequest = std::make_shared<SfxRequest>(rReq);
                 rReq.Ignore(); // the 'old' request is not relevant any more
                 pDlg->StartExecuteAsync(
-                    [this, pDlg, xRequest] (sal_Int32 /*nResult*/)->void
+                    [this, pDlg, xRequest=std::move(xRequest)] (sal_Int32 
/*nResult*/)->void
                     {
                         GetViewFrame().GetBindings().Invalidate( SID_LINKS );
                         SfxGetpApp()->Broadcast( SfxHint( 
SfxHintId::ScAreaLinksChanged ) );     // Navigator
diff --git a/svx/source/dialog/grfflt.cxx b/svx/source/dialog/grfflt.cxx
index 9c7f1a9c92ba..49e97a9017ee 100644
--- a/svx/source/dialog/grfflt.cxx
+++ b/svx/source/dialog/grfflt.cxx
@@ -266,10 +266,7 @@ static void handleGraphicFilterDialog(const 
VclPtr<AbstractGraphicFilterDialog>&
         [pDlg, aInputGraphic, f] (sal_Int32 nResult)->void
         {
             if (nResult == RET_OK)
-            {
-                Graphic aOutputGraphic = pDlg->GetFilteredGraphic( 
aInputGraphic, 1.0, 1.0 );
-                f(aOutputGraphic);
-            }
+                f(pDlg->GetFilteredGraphic(aInputGraphic, 1.0, 1.0));
             pDlg->disposeOnce();
         }
     );

Reply via email to