comphelper/source/misc/lok.cxx |    4 ++--
 include/comphelper/lok.hxx     |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 823e1c1c367ef159f56ae9c36c3bd0ac1aa21b82
Author:     Caolán McNamara <[email protected]>
AuthorDate: Sun Jan 12 00:37:08 2025 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Sun Jan 12 18:14:31 2025 +0100

    cid#1638656 COPY_INSTEAD_OF_MOVE
    
    and
    
    cid#1638657 COPY_INSTEAD_OF_MOVE
    
    Change-Id: I866cb3f7550260c0dd14e14beb94144348665226
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180134
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins

diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx
index cd1333711e4d..b3ac3ce79420 100644
--- a/comphelper/source/misc/lok.cxx
+++ b/comphelper/source/misc/lok.cxx
@@ -340,7 +340,7 @@ bool anyInput()
     return bRet;
 }
 
-void setViewSetter(std::function<void(int)> pViewSetter)
+void setViewSetter(const std::function<void(int)>& pViewSetter)
 {
     g_pViewSetter = pViewSetter;
 }
@@ -355,7 +355,7 @@ void setView(int nView)
     g_pViewSetter(nView);
 }
 
-void setViewGetter(std::function<int()> pViewGetter)
+void setViewGetter(const std::function<int()>& pViewGetter)
 {
     g_pViewGetter = pViewGetter;
 }
diff --git a/include/comphelper/lok.hxx b/include/comphelper/lok.hxx
index 0565fa78d6da..0dd5fbdb2f23 100644
--- a/include/comphelper/lok.hxx
+++ b/include/comphelper/lok.hxx
@@ -140,9 +140,9 @@ COMPHELPER_DLLPUBLIC bool anyInput();
 
 // These allow setting callbacks, so that set/get of a LOK view is possible 
even in code that is
 // below sfx2.
-COMPHELPER_DLLPUBLIC void setViewSetter(std::function<void(int)> pViewSetter);
+COMPHELPER_DLLPUBLIC void setViewSetter(const std::function<void(int)>& 
pViewSetter);
 COMPHELPER_DLLPUBLIC void setView(int nView);
-COMPHELPER_DLLPUBLIC void setViewGetter(std::function<int()> pViewGetter);
+COMPHELPER_DLLPUBLIC void setViewGetter(const std::function<int()>& 
pViewGetter);
 COMPHELPER_DLLPUBLIC int getView();
 }
 

Reply via email to