cppcanvas/source/mtfrenderer/implrenderer.cxx |    2 +-
 helpcompiler/source/HelpLinker.cxx            |    2 +-
 sc/source/ui/miscdlgs/optsolver.cxx           |    2 +-
 ucb/source/ucp/hierarchy/hierarchycontent.cxx |    2 +-
 vcl/source/bitmap/BitmapSobelGreyFilter.cxx   |    2 +-
 vcl/source/control/field.cxx                  |    2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit ee015dc915b3a43e13d2f4c76f2811b36067e835
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Fri Aug 9 20:25:23 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Sat Aug 10 17:01:12 2024 +0200

    cid#1556058 COPY_INSTEAD_OF_MOVE
    
    and
    
    cid#1556064 COPY_INSTEAD_OF_MOVE
    cid#1556066 COPY_INSTEAD_OF_MOVE
    cid#1556072 COPY_INSTEAD_OF_MOVE
    cid#1556075 COPY_INSTEAD_OF_MOVE
    cid#1556077 COPY_INSTEAD_OF_MOVE
    
    Change-Id: Ie2992d321ecff15f104547e3a3cad6e8c1a786a5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171708
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx 
b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index b62aa6ac90d0..0577813318b9 100644
--- a/cppcanvas/source/mtfrenderer/implrenderer.cxx
+++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx
@@ -370,7 +370,7 @@ namespace cppcanvas::internal
                 aCalculatedNewState.pushFlags = rNewState.pushFlags;
 
                 // flush to stack
-                getState() = aCalculatedNewState;
+                getState() = std::move(aCalculatedNewState);
             }
             else
             {
diff --git a/helpcompiler/source/HelpLinker.cxx 
b/helpcompiler/source/HelpLinker.cxx
index d028b866fd94..4f52f9af4678 100644
--- a/helpcompiler/source/HelpLinker.cxx
+++ b/helpcompiler/source/HelpLinker.cxx
@@ -671,7 +671,7 @@ void HelpLinker::main( std::vector<std::string> &args,
             }
             addFile = args[i];
             if (!addFileUnderPath.empty() && !addFile.empty())
-                additionalFiles[addFileUnderPath] = addFile;
+                additionalFiles[addFileUnderPath] = std::move(addFile);
         }
         else if (args[i].compare("-nolangroot") == 0)
             m_bUseLangRoot = false;
diff --git a/sc/source/ui/miscdlgs/optsolver.cxx 
b/sc/source/ui/miscdlgs/optsolver.cxx
index 7ef0eba43b15..358754a884fe 100644
--- a/sc/source/ui/miscdlgs/optsolver.cxx
+++ b/sc/source/ui/miscdlgs/optsolver.cxx
@@ -1072,7 +1072,7 @@ bool ScOptSolverDlg::CallSolver()       // return true -> 
close dialog after cal
         }
 
         aConstraints.realloc( nConstrPos + 1 );
-        aConstraints.getArray()[nConstrPos++] = aConstraint;
+        aConstraints.getArray()[nConstrPos++] = std::move(aConstraint);
     }
 
     // copy old document values
diff --git a/ucb/source/ucp/hierarchy/hierarchycontent.cxx 
b/ucb/source/ucp/hierarchy/hierarchycontent.cxx
index 673ef887b54a..da0a328fe8ff 100644
--- a/ucb/source/ucp/hierarchy/hierarchycontent.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchycontent.cxx
@@ -1246,7 +1246,7 @@ uno::Sequence< uno::Any > 
HierarchyContent::setPropertyValues(
         aEvent.OldValue     <<= aOldTitle;
         aEvent.NewValue     <<= m_aProps.getTitle();
 
-        aChanges.getArray()[ nChanged ] = aEvent;
+        aChanges.getArray()[ nChanged ] = std::move(aEvent);
         nChanged++;
     }
 
diff --git a/vcl/source/bitmap/BitmapSobelGreyFilter.cxx 
b/vcl/source/bitmap/BitmapSobelGreyFilter.cxx
index c1c6822757ac..92a5ba2f9bdb 100644
--- a/vcl/source/bitmap/BitmapSobelGreyFilter.cxx
+++ b/vcl/source/bitmap/BitmapSobelGreyFilter.cxx
@@ -143,7 +143,7 @@ BitmapEx BitmapSobelGreyFilter::execute(BitmapEx const& 
rBitmapEx) const
     const MapMode aMap(aBitmap.GetPrefMapMode());
     const Size aPrefSize(aBitmap.GetPrefSize());
 
-    aBitmap = aNewBmp;
+    aBitmap = std::move(aNewBmp);
 
     aBitmap.SetPrefMapMode(aMap);
     aBitmap.SetPrefSize(aPrefSize);
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx
index d85b235b0ea3..cfbef9171efc 100644
--- a/vcl/source/control/field.cxx
+++ b/vcl/source/control/field.cxx
@@ -323,7 +323,7 @@ bool ImplNumericGetValue( const OUString& rStr, sal_Int64& 
rValue,
             aStr2.append(aStrFrac.getStr()+nDecPos+1);
         }
         else
-            aStr1 = aStrFrac;
+            aStr1 = std::move(aStrFrac);
     }
 
     // prune and round fraction

Reply via email to