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

New commits:
commit 63f3573dd7a68ddd44fe9bd723d3597b8772c7e9
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Thu Feb 20 12:29:03 2025 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Thu Feb 20 14:42:49 2025 +0100

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

diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx
index 92a8a3eba0c1..1d9f887e783a 100644
--- a/comphelper/source/misc/lok.cxx
+++ b/comphelper/source/misc/lok.cxx
@@ -330,7 +330,8 @@ void statusIndicatorFinish()
         pStatusIndicatorCallback(pStatusIndicatorCallbackData, 
statusIndicatorCallbackType::Finish, 0, nullptr);
 }
 
-void setAnyInputCallback(const std::function<bool(void*, int)>& 
pAnyInputCallback, void* pData, std::function<int()> pMostUrgentPriorityGetter)
+void setAnyInputCallback(const std::function<bool(void*, int)>& 
pAnyInputCallback, void* pData,
+                         const std::function<int()>& pMostUrgentPriorityGetter)
 {
     g_pAnyInputCallback = pAnyInputCallback;
     g_pAnyInputCallbackData = pData;
diff --git a/include/comphelper/lok.hxx b/include/comphelper/lok.hxx
index caed5075d986..b6610259c13e 100644
--- a/include/comphelper/lok.hxx
+++ b/include/comphelper/lok.hxx
@@ -140,7 +140,7 @@ COMPHELPER_DLLPUBLIC void setBlockedCommandList(const char* 
blockedCommandList);
 
 COMPHELPER_DLLPUBLIC void
 setAnyInputCallback(const std::function<bool(void*, int)>& pAnyInputCallback, 
void* pData,
-                    std::function<int()> pMostUrgentPriorityGetter);
+                    const std::function<int()>& pMostUrgentPriorityGetter);
 COMPHELPER_DLLPUBLIC bool anyInput();
 
 // These allow setting callbacks, so that set/get of a LOK view is possible 
even in code that is

Reply via email to