vcl/qa/cppunit/a11y/atspi2/atspi2.cxx         |    2 +-
 vcl/qa/cppunit/a11y/atspi2/atspi2testbase.hxx |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 08aa3c4fa7090b782301ea95891266fd6029cfd9
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Thu Nov 14 08:03:12 2024 +0100
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Thu Nov 14 09:15:00 2024 +0100

    loplugin:reftotemp
    
    (plus ensuing -Werror,-Wpessimizing-move)
    
    Change-Id: Ie2bc5310f0c4a50ba6cdc351cc99f09e7534de29
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176562
    Reviewed-by: Stephan Bergmann <[email protected]>
    Tested-by: Jenkins

diff --git a/vcl/qa/cppunit/a11y/atspi2/atspi2.cxx 
b/vcl/qa/cppunit/a11y/atspi2/atspi2.cxx
index 904788594242..97bb9bee61bc 100644
--- a/vcl/qa/cppunit/a11y/atspi2/atspi2.cxx
+++ b/vcl/qa/cppunit/a11y/atspi2/atspi2.cxx
@@ -243,7 +243,7 @@ static void dumpAtspiTree(const Atspi::Accessible& pAcc, 
const int depth = 0)
     std::cout << debugString(pAcc) << std::endl;
 
     sal_Int32 i = 0;
-    for (const auto& pChild : pAcc)
+    for (const auto pChild : pAcc)
     {
         for (auto j = decltype(depth){ 0 }; j < depth; j++)
             std::cout << "  ";
diff --git a/vcl/qa/cppunit/a11y/atspi2/atspi2testbase.hxx 
b/vcl/qa/cppunit/a11y/atspi2/atspi2testbase.hxx
index a0ac926c719d..55089a7c3f29 100644
--- a/vcl/qa/cppunit/a11y/atspi2/atspi2testbase.hxx
+++ b/vcl/qa/cppunit/a11y/atspi2/atspi2testbase.hxx
@@ -35,7 +35,7 @@ protected:
         {
             Atspi::Accessible desktop(atspi_get_desktop(desktopId));
 
-            for (auto&& child : desktop)
+            for (auto const child : desktop)
             {
                 if (!child) // is that useful?
                     continue;
@@ -47,7 +47,7 @@ protected:
                 {
                     continue;
                 }
-                return std::move(child);
+                return child;
             }
         }
         return nullptr;
@@ -64,12 +64,12 @@ protected:
 protected:
     Atspi::Accessible getWindow(const std::string_view windowName)
     {
-        for (auto&& child : m_pAtspiApp)
+        for (auto const child : m_pAtspiApp)
         {
             const auto name = child.getName();
             std::cout << "Found window: " << name << std::endl;
             if (windowName == name)
-                return std::move(child);
+                return child;
         }
         return nullptr;
     }

Reply via email to