summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-01-28 19:19:58 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-01-28 22:14:43 +0100
commitd0eb98a4b3acf510e2e6aa6bb39e866d0977fc40 (patch)
tree2a943f80ff29ef7e378cb2295bf0d4a17ccfc18c
parent95d1e7f0873a2bbb9ab4b0aa171fec29d36c3f55 (diff)
cid#1588086 COPY_INSTEAD_OF_MOVE
and cid#1588075 COPY_INSTEAD_OF_MOVE cid#1588074 COPY_INSTEAD_OF_MOVE Change-Id: Ia621e7aafd5e0b009b8c97deeace8708897dad4f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162667 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r--include/svx/grfflt.hxx2
-rw-r--r--svx/source/dialog/grfflt.cxx6
-rw-r--r--sw/source/ui/dialog/macassgn.cxx2
-rw-r--r--sw/source/uibase/inc/macassgn.hxx2
4 files changed, 6 insertions, 6 deletions
diff --git a/include/svx/grfflt.hxx b/include/svx/grfflt.hxx
index 731ef94bcdcb..13710ae4de55 100644
--- a/include/svx/grfflt.hxx
+++ b/include/svx/grfflt.hxx
@@ -32,7 +32,7 @@ public:
/// this will execute a dialog and then call function f with the output of the filtering operation
static void ExecuteGrfFilterSlot( SfxRequest const & rReq, const GraphicObject& rInputObject,
- std::function<void(GraphicObject)> f);
+ const std::function<void(const GraphicObject&)>& f);
static void DisableGraphicFilterSlots( SfxItemSet& rSet );
};
diff --git a/svx/source/dialog/grfflt.cxx b/svx/source/dialog/grfflt.cxx
index 562e0d52c990..9c7f1a9c92ba 100644
--- a/svx/source/dialog/grfflt.cxx
+++ b/svx/source/dialog/grfflt.cxx
@@ -35,11 +35,11 @@
static void handleGraphicFilterDialog(const VclPtr<AbstractGraphicFilterDialog>& pDlg,
const Graphic& aInputGraphic,
- std::function<void(GraphicObject)> f);
+ const std::function<void(const GraphicObject&)>& f);
void SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest const & rReq,
const GraphicObject& rInputObject,
- std::function<void(GraphicObject)> f)
+ const std::function<void(const GraphicObject&)>& f)
{
Graphic aInputGraphic = rInputObject.GetGraphic();
@@ -260,7 +260,7 @@ void SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest const & rReq,
static void handleGraphicFilterDialog(const VclPtr<AbstractGraphicFilterDialog>& pDlg,
const Graphic& aInputGraphic,
- std::function<void(GraphicObject)> f)
+ const std::function<void(const GraphicObject&)>& f)
{
pDlg->StartExecuteAsync(
[pDlg, aInputGraphic, f] (sal_Int32 nResult)->void
diff --git a/sw/source/ui/dialog/macassgn.cxx b/sw/source/ui/dialog/macassgn.cxx
index fed86baa024f..fe059dc04993 100644
--- a/sw/source/ui/dialog/macassgn.cxx
+++ b/sw/source/ui/dialog/macassgn.cxx
@@ -101,7 +101,7 @@ SfxEventNamesItem SwMacroAssignDlg::AddEvents( DlgEventType eType )
}
void SwMacroAssignDlg::INetFormatDlg(weld::Window* pParent, SwWrtShell& rSh, const SvxMacroItem& rItem,
- std::function<void(const SvxMacroItem&)> onItemSelectedFunc )
+ const std::function<void(const SvxMacroItem&)>& onItemSelectedFunc )
{
SfxItemSetFixed<RES_FRMMACRO, RES_FRMMACRO, SID_EVENTCONFIG, SID_EVENTCONFIG> aSet( rSh.GetAttrPool() );
aSet.Put( rItem );
diff --git a/sw/source/uibase/inc/macassgn.hxx b/sw/source/uibase/inc/macassgn.hxx
index 0975a35a6fed..29da5e6eb7a8 100644
--- a/sw/source/uibase/inc/macassgn.hxx
+++ b/sw/source/uibase/inc/macassgn.hxx
@@ -41,7 +41,7 @@ class SwMacroAssignDlg
public:
static SfxEventNamesItem AddEvents(DlgEventType eType);
static void INetFormatDlg(weld::Window* pParent, SwWrtShell& rSh, const SvxMacroItem& rItem,
- std::function<void(const SvxMacroItem&)> onItemSelectedFunc);
+ const std::function<void(const SvxMacroItem&)>& onItemSelectedFunc);
};
#endif