vcl/unx/gtk4/gtkaccessibleregistry.cxx |    8 ++++----
 vcl/unx/gtk4/gtkaccessibleregistry.hxx |    7 ++++---
 2 files changed, 8 insertions(+), 7 deletions(-)

New commits:
commit 256463f132597b257cde0b2e3506757b785e4b08
Author:     Stephan Bergmann <stephan.bergm...@allotropia.de>
AuthorDate: Tue Nov 19 12:44:53 2024 +0100
Commit:     Stephan Bergmann <stephan.bergm...@allotropia.de>
CommitDate: Tue Nov 19 16:25:54 2024 +0100

    loplugin:passparamsbyref
    
    Change-Id: I9ad592670399f25eeaea375bf71e6d30ee20118f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176763
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <stephan.bergm...@allotropia.de>

diff --git a/vcl/unx/gtk4/gtkaccessibleregistry.cxx 
b/vcl/unx/gtk4/gtkaccessibleregistry.cxx
index c8086ec4b13e..357df91d0160 100644
--- a/vcl/unx/gtk4/gtkaccessibleregistry.cxx
+++ b/vcl/unx/gtk4/gtkaccessibleregistry.cxx
@@ -14,9 +14,9 @@
 
 std::map<css::accessibility::XAccessible*, LoAccessible*> 
GtkAccessibleRegistry::m_aMapping = {};
 
-LoAccessible*
-GtkAccessibleRegistry::getLOAccessible(css::uno::Reference<css::accessibility::XAccessible>
 xAcc,
-                                       GdkDisplay* pDisplay, GtkAccessible* 
pParent)
+LoAccessible* GtkAccessibleRegistry::getLOAccessible(
+    css::uno::Reference<css::accessibility::XAccessible> const& xAcc, 
GdkDisplay* pDisplay,
+    GtkAccessible* pParent)
 {
     if (!xAcc.is())
         return nullptr;
@@ -48,7 +48,7 @@ 
GtkAccessibleRegistry::getLOAccessible(css::uno::Reference<css::accessibility::X
     return pLoAccessible;
 }
 
-void 
GtkAccessibleRegistry::remove(css::uno::Reference<css::accessibility::XAccessible>
 xAcc)
+void 
GtkAccessibleRegistry::remove(css::uno::Reference<css::accessibility::XAccessible>
 const& xAcc)
 {
     assert(xAcc.is());
     m_aMapping.erase(xAcc.get());
diff --git a/vcl/unx/gtk4/gtkaccessibleregistry.hxx 
b/vcl/unx/gtk4/gtkaccessibleregistry.hxx
index e2ad1588e8db..fb57ff9be4b1 100644
--- a/vcl/unx/gtk4/gtkaccessibleregistry.hxx
+++ b/vcl/unx/gtk4/gtkaccessibleregistry.hxx
@@ -23,10 +23,11 @@ private:
 
 public:
     /** Returns the related LoAccessible* for the XAccessible. Creates a new 
one if none exists yet. */
-    static LoAccessible* 
getLOAccessible(css::uno::Reference<css::accessibility::XAccessible> xAcc,
-                                         GdkDisplay* pDisplay, GtkAccessible* 
pParent = nullptr);
+    static LoAccessible*
+    getLOAccessible(css::uno::Reference<css::accessibility::XAccessible> 
const& xAcc,
+                    GdkDisplay* pDisplay, GtkAccessible* pParent = nullptr);
     /** Removes the entry for the given XAccessible. */
-    static void remove(css::uno::Reference<css::accessibility::XAccessible> 
xAcc);
+    static void remove(css::uno::Reference<css::accessibility::XAccessible> 
const& xAcc);
 };
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Reply via email to