basctl/source/basicide/documentenumeration.cxx                |    2 +-
 basic/source/classes/sbunoobj.cxx                             |    2 +-
 chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx |    2 +-
 chart2/source/controller/main/ShapeController.cxx             |    2 +-
 chart2/source/tools/LabeledDataSequence.cxx                   |    4 ++--
 comphelper/source/streaming/seekableinput.cxx                 |    2 +-
 connectivity/source/cpool/ZConnectionPool.cxx                 |    2 +-
 connectivity/source/cpool/ZPoolCollection.cxx                 |    2 +-
 cppcanvas/source/mtfrenderer/textaction.cxx                   |    2 +-
 dbaccess/source/ui/app/AppController.cxx                      |    2 +-
 dbaccess/source/ui/dlg/CollectionView.cxx                     |    2 +-
 extensions/source/abpilot/datasourcehandling.cxx              |    2 +-
 framework/source/loadenv/loadenv.cxx                          |    4 ++--
 io/source/stm/odata.cxx                                       |    2 +-
 package/source/xstor/owriteablestream.cxx                     |    2 +-
 package/source/xstor/xstorage.cxx                             |    2 +-
 sc/source/filter/excel/excimp8.cxx                            |    2 +-
 sc/source/filter/excel/xechart.cxx                            |    6 +++---
 sd/source/console/PresenterWindowManager.cxx                  |    2 +-
 sd/source/ui/animations/CustomAnimationPane.cxx               |    2 +-
 sd/source/ui/unoidl/randomnode.cxx                            |    2 +-
 sfx2/source/control/recentdocsviewitem.cxx                    |    2 +-
 sfx2/source/doc/docfile.cxx                                   |    2 +-
 svl/source/misc/sharecontrolfile.cxx                          |    2 +-
 svtools/source/misc/acceleratorexecute.cxx                    |    6 +++---
 svtools/source/uno/popupmenucontrollerbase.cxx                |    2 +-
 svx/source/form/fmPropBrw.cxx                                 |    2 +-
 svx/source/form/fmshimp.cxx                                   |    4 ++--
 sw/source/filter/ww8/ww8par3.cxx                              |    2 +-
 sw/source/uibase/dbui/mailmergehelper.cxx                     |    2 +-
 toolkit/source/controls/grid/sortablegriddatamodel.cxx        |    4 ++--
 unoxml/source/dom/element.cxx                                 |    2 +-
 unoxml/source/dom/saxbuilder.cxx                              |    2 +-
 xmloff/source/core/xmlexp.cxx                                 |    2 +-
 xmloff/source/core/xmlimp.cxx                                 |    2 +-
 xmloff/source/text/XMLSectionExport.cxx                       |    2 +-
 36 files changed, 44 insertions(+), 44 deletions(-)

New commits:
commit ee4554b0ac88f673ac9998e317fb02dc5342de80
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Tue Oct 22 12:26:04 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Tue Oct 22 17:53:07 2024 +0200

    cid#1555259 COPY_INSTEAD_OF_MOVE
    
    and
    
    cid#1555264 COPY_INSTEAD_OF_MOVE
    cid#1555280 COPY_INSTEAD_OF_MOVE
    cid#1555303 COPY_INSTEAD_OF_MOVE
    cid#1555313 COPY_INSTEAD_OF_MOVE
    cid#1555314 COPY_INSTEAD_OF_MOVE
    cid#1555323 COPY_INSTEAD_OF_MOVE
    cid#1555333 COPY_INSTEAD_OF_MOVE
    cid#1555338 COPY_INSTEAD_OF_MOVE
    cid#1555349 COPY_INSTEAD_OF_MOVE
    cid#1555364 COPY_INSTEAD_OF_MOVE
    cid#1555379 COPY_INSTEAD_OF_MOVE
    cid#1555398 COPY_INSTEAD_OF_MOVE
    cid#1555410 COPY_INSTEAD_OF_MOVE
    cid#1555411 COPY_INSTEAD_OF_MOVE
    cid#1555416 COPY_INSTEAD_OF_MOVE
    cid#1555429 COPY_INSTEAD_OF_MOVE
    cid#1555434 COPY_INSTEAD_OF_MOVE
    cid#1555441 COPY_INSTEAD_OF_MOVE
    cid#1555446 COPY_INSTEAD_OF_MOVE
    cid#1555480 COPY_INSTEAD_OF_MOVE
    cid#1555490 COPY_INSTEAD_OF_MOVE
    cid#1555524 COPY_INSTEAD_OF_MOVE
    cid#1555527 COPY_INSTEAD_OF_MOVE
    cid#1555531 COPY_INSTEAD_OF_MOVE
    cid#1555578 COPY_INSTEAD_OF_MOVE
    cid#1555581 COPY_INSTEAD_OF_MOVE
    cid#1555591 COPY_INSTEAD_OF_MOVE
    cid#1555614 COPY_INSTEAD_OF_MOVE
    cid#1555619 COPY_INSTEAD_OF_MOVE
    cid#1555633 COPY_INSTEAD_OF_MOVE
    cid#1555654 COPY_INSTEAD_OF_MOVE
    cid#1555707 COPY_INSTEAD_OF_MOVE
    cid#1555712 COPY_INSTEAD_OF_MOVE
    cid#1555746 COPY_INSTEAD_OF_MOVE
    cid#1555763 COPY_INSTEAD_OF_MOVE
    
    Change-Id: Ibcc1a3649c5663328e60474c06e51902aa74db52
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175407
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins

diff --git a/basctl/source/basicide/documentenumeration.cxx 
b/basctl/source/basicide/documentenumeration.cxx
index d71e02139e02..60ace06d2bac 100644
--- a/basctl/source/basicide/documentenumeration.cxx
+++ b/basctl/source/basicide/documentenumeration.cxx
@@ -117,7 +117,7 @@ namespace basctl::docs {
 
                     // create a DocumentDescriptor
                     DocumentDescriptor aDescriptor;
-                    aDescriptor.xModel = xModel;
+                    aDescriptor.xModel = std::move(xModel);
                     lcl_getDocumentControllers_nothrow( aDescriptor );
 
                     // consult filter, if there is one
diff --git a/basic/source/classes/sbunoobj.cxx 
b/basic/source/classes/sbunoobj.cxx
index 57d262960f31..77e3541cf157 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -3738,7 +3738,7 @@ void SbUnoSingleton::Notify( SfxBroadcaster& rBC, const 
SfxHint& rHint )
             Reference < XComponentContext > xFirstParamContext;
             Any aArg1 = sbxToUnoValue(pParams->Get(1));
             if( (aArg1 >>= xFirstParamContext) && xFirstParamContext.is() )
-                xContextToUse = xFirstParamContext;
+                xContextToUse = std::move(xFirstParamContext);
         }
 
         if( !xContextToUse.is() )
diff --git a/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx 
b/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx
index 92cfdccb62bd..18be04d358de 100644
--- a/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx
@@ -575,7 +575,7 @@ void ChartDataWrapper::fireChartDataChangeEvent( 
css::chart::ChartDataChangeEven
     uno::Reference< uno::XInterface > xSrc( static_cast< cppu::OWeakObject* >( 
this ));
     OSL_ASSERT( xSrc.is());
     if( xSrc.is() )
-        aEvent.Source = xSrc;
+        aEvent.Source = std::move(xSrc);
 
     m_aEventListenerContainer.forEach( g,
         [&aEvent](const uno::Reference<css::lang::XEventListener>& l)
diff --git a/chart2/source/controller/main/ShapeController.cxx 
b/chart2/source/controller/main/ShapeController.cxx
index 1c317d1bf3dc..cdcc016541bf 100644
--- a/chart2/source/controller/main/ShapeController.cxx
+++ b/chart2/source/controller/main/ShapeController.cxx
@@ -624,7 +624,7 @@ SdrObject* ShapeController::getLastAdditionalShape()
                 {
                     if ( xShape.is() && xShape != xChartRoot )
                     {
-                        xLastShape = xShape;
+                        xLastShape = std::move(xShape);
                         break;
                     }
                 }
diff --git a/chart2/source/tools/LabeledDataSequence.cxx 
b/chart2/source/tools/LabeledDataSequence.cxx
index 16afb3a6076c..181c639625ec 100644
--- a/chart2/source/tools/LabeledDataSequence.cxx
+++ b/chart2/source/tools/LabeledDataSequence.cxx
@@ -70,8 +70,8 @@ LabeledDataSequence::LabeledDataSequence( const 
LabeledDataSequence& rSource ) :
     if( xValuesCloneable.is())
         xNewValues.set( xValuesCloneable->createClone(), uno::UNO_QUERY );
 
-    m_xData = xNewValues;
-    m_xLabel = xNewLabel;
+    m_xData = std::move(xNewValues);
+    m_xLabel = std::move(xNewLabel);
 
     ModifyListenerHelper::addListener( m_xData, m_xModifyEventForwarder );
     ModifyListenerHelper::addListener( m_xLabel, m_xModifyEventForwarder );
diff --git a/comphelper/source/streaming/seekableinput.cxx 
b/comphelper/source/streaming/seekableinput.cxx
index dceb16824c58..a90df21e3d80 100644
--- a/comphelper/source/streaming/seekableinput.cxx
+++ b/comphelper/source/streaming/seekableinput.cxx
@@ -108,7 +108,7 @@ void OSeekableInputWrapper::PrepareCopy_Impl()
             m_xCopyInput.set( xTempOut, uno::UNO_QUERY );
             if ( m_xCopyInput.is() )
             {
-                m_xCopySeek = xTempSeek;
+                m_xCopySeek = std::move(xTempSeek);
                 m_pCopyByteReader = 
dynamic_cast<comphelper::ByteReader*>(xTempOut.get());
                 assert(m_pCopyByteReader);
             }
diff --git a/connectivity/source/cpool/ZConnectionPool.cxx 
b/connectivity/source/cpool/ZConnectionPool.cxx
index 9d38b2e99e2d..f00e512e81d9 100644
--- a/connectivity/source/cpool/ZConnectionPool.cxx
+++ b/connectivity/source/cpool/ZConnectionPool.cxx
@@ -271,7 +271,7 @@ Reference< XConnection> 
OConnectionPool::getPooledConnection(TConnectionMap::ite
 
         TActiveConnectionInfo aActiveInfo;
         aActiveInfo.aPos = _rIter;
-        aActiveInfo.xPooledConnection = xPooledConnection;
+        aActiveInfo.xPooledConnection = std::move(xPooledConnection);
         m_aActiveConnections[xConnection] = std::move(aActiveInfo);
     }
     return xConnection;
diff --git a/connectivity/source/cpool/ZPoolCollection.cxx 
b/connectivity/source/cpool/ZPoolCollection.cxx
index 160c21bfe7e4..e6ef3182520d 100644
--- a/connectivity/source/cpool/ZPoolCollection.cxx
+++ b/connectivity/source/cpool/ZPoolCollection.cxx
@@ -152,7 +152,7 @@ Reference< XDriver > SAL_CALL 
OPoolCollection::getDriverByURL( const OUString& _
         }
         if (xExistentProxy.is())
         {
-            xDriver = xExistentProxy;
+            xDriver = std::move(xExistentProxy);
         }
         else
         {   // create a new proxy for the driver
diff --git a/cppcanvas/source/mtfrenderer/textaction.cxx 
b/cppcanvas/source/mtfrenderer/textaction.cxx
index ac3348daf68d..8b5d1168b262 100644
--- a/cppcanvas/source/mtfrenderer/textaction.cxx
+++ b/cppcanvas/source/mtfrenderer/textaction.cxx
@@ -465,7 +465,7 @@ namespace cppcanvas::internal
                     xTextLayout->applyKashidaPositions(aKashidaPositions);
                 }
 
-                io_rTextLayout = xTextLayout;
+                io_rTextLayout = std::move(xTextLayout);
             }
 
 
diff --git a/dbaccess/source/ui/app/AppController.cxx 
b/dbaccess/source/ui/app/AppController.cxx
index 092720a38d6f..c433f8c83f44 100644
--- a/dbaccess/source/ui/app/AppController.cxx
+++ b/dbaccess/source/ui/app/AppController.cxx
@@ -2034,7 +2034,7 @@ void OApplicationController::renameEntry()
                                     Reference<XHierarchicalNameContainer> 
xParent(xChild->getParent(),UNO_QUERY);
                                     if ( xParent.is() )
                                     {
-                                        xHNames = xParent;
+                                        xHNames = std::move(xParent);
                                         
Reference<XPropertySet>(xRename,UNO_QUERY_THROW)->getPropertyValue(PROPERTY_NAME)
 >>= sName;
                                     }
                                 }
diff --git a/dbaccess/source/ui/dlg/CollectionView.cxx 
b/dbaccess/source/ui/dlg/CollectionView.cxx
index 78e025ea748c..355b3c9bd46e 100644
--- a/dbaccess/source/ui/dlg/CollectionView.cxx
+++ b/dbaccess/source/ui/dlg/CollectionView.cxx
@@ -229,7 +229,7 @@ IMPL_LINK_NOARG(OCollectionView, Dbl_Click_FileView, 
weld::TreeView&, bool)
                     xContent.set(xNameAccess->getByName(sSubFolder),UNO_QUERY);
                 if ( xContent.is() )
                 {
-                    m_xContent = xContent;
+                    m_xContent = std::move(xContent);
                     Initialize();
                     initCurrentPath();
                 }
diff --git a/extensions/source/abpilot/datasourcehandling.cxx 
b/extensions/source/abpilot/datasourcehandling.cxx
index 77f94b71600c..fb65c997187a 100644
--- a/extensions/source/abpilot/datasourcehandling.cxx
+++ b/extensions/source/abpilot/datasourcehandling.cxx
@@ -118,7 +118,7 @@ namespace abp
         if (xContext.is())
         {
             //  xDynamicContext->registerObject( _rName, xNewDataSource );
-            _rxNewDataSource = xNewDataSource;
+            _rxNewDataSource = std::move(xNewDataSource);
         }
     }
 
diff --git a/framework/source/loadenv/loadenv.cxx 
b/framework/source/loadenv/loadenv.cxx
index 57f2715c4121..2540a1f59913 100644
--- a/framework/source/loadenv/loadenv.cxx
+++ b/framework/source/loadenv/loadenv.cxx
@@ -1417,9 +1417,9 @@ css::uno::Reference< css::frame::XFrame > 
LoadEnv::impl_searchAlreadyLoaded()
 
     css::uno::Reference< css::frame::XFrame > xResult;
     if (xTask.is())
-        xResult = xTask;
+        xResult = std::move(xTask);
     else if (xHiddenTask.is())
-        xResult = xHiddenTask;
+        xResult = std::move(xHiddenTask);
 
     if (xResult.is())
     {
diff --git a/io/source/stm/odata.cxx b/io/source/stm/odata.cxx
index 7391a2062cce..55af87271e4a 100644
--- a/io/source/stm/odata.cxx
+++ b/io/source/stm/odata.cxx
@@ -1149,7 +1149,7 @@ void OObjectInputStream::connectToMarkable()
         Reference<  XMarkableStream > markable( rTry , UNO_QUERY );
         if( markable.is() )
         {
-            m_rMarkable = markable;
+            m_rMarkable = std::move(markable);
             break;
         }
         Reference < XActiveDataSink > sink( rTry , UNO_QUERY );
diff --git a/package/source/xstor/owriteablestream.cxx 
b/package/source/xstor/owriteablestream.cxx
index 16e04ac6ce76..40134c28a9c3 100644
--- a/package/source/xstor/owriteablestream.cxx
+++ b/package/source/xstor/owriteablestream.cxx
@@ -2849,7 +2849,7 @@ void SAL_CALL OWriteStream::setPropertyValue( const 
OUString& aPropertyName, con
             throw lang::IllegalArgumentException(); // TODO
         }
 
-        m_pImpl->m_xNewRelInfoStream = xInRelStream;
+        m_pImpl->m_xNewRelInfoStream = std::move(xInRelStream);
         m_pImpl->m_aNewRelInfo = uno::Sequence< uno::Sequence< 
beans::StringPair > >();
         m_pImpl->m_nRelInfoStatus = RELINFO_CHANGED_STREAM;
     }
diff --git a/package/source/xstor/xstorage.cxx 
b/package/source/xstor/xstorage.cxx
index e0550695e1dd..73ec8207f1b7 100644
--- a/package/source/xstor/xstorage.cxx
+++ b/package/source/xstor/xstorage.cxx
@@ -1172,7 +1172,7 @@ void OStorage_Impl::Commit()
     }
     else if ( !m_bCommited )
     {
-        m_xPackageFolder = xNewPackageFolder;
+        m_xPackageFolder = std::move(xNewPackageFolder);
         m_bCommited = true;
     }
 
diff --git a/sc/source/filter/excel/excimp8.cxx 
b/sc/source/filter/excel/excimp8.cxx
index a3c0112e0228..d94e722d139e 100644
--- a/sc/source/filter/excel/excimp8.cxx
+++ b/sc/source/filter/excel/excimp8.cxx
@@ -113,7 +113,7 @@ public:
         uno::Reference< container::XIndexContainer > xElement;
         if ( ! ( aElement >>= xElement ) )
             throw lang::IllegalArgumentException();
-        IdToOleNameHash[ aName ] = xElement;
+        IdToOleNameHash[ aName ] = std::move(xElement);
     }
     virtual void SAL_CALL removeByName( const OUString& aName ) override
     {
diff --git a/sc/source/filter/excel/xechart.cxx 
b/sc/source/filter/excel/xechart.cxx
index 7956951bb8d1..47de22558cd9 100644
--- a/sc/source/filter/excel/xechart.cxx
+++ b/sc/source/filter/excel/xechart.cxx
@@ -1853,17 +1853,17 @@ bool XclExpChSeries::ConvertDataSeries(
             {
                 if( !xYValueSeq.is() && (aRole == EXC_CHPROP_ROLE_YVALUES) )
                 {
-                    xYValueSeq = xTmpValueSeq;
+                    xYValueSeq = std::move(xTmpValueSeq);
                     if( !xTitleSeq.is() )
                         xTitleSeq = rLabeledSeq->getLabel(); // ignore role of 
label sequence
                 }
                 else if( !xXValueSeq.is() && !rTypeInfo.mbCategoryAxis && 
(aRole == EXC_CHPROP_ROLE_XVALUES) )
                 {
-                    xXValueSeq = xTmpValueSeq;
+                    xXValueSeq = std::move(xTmpValueSeq);
                 }
                 else if( !xBubbleSeq.is() && (rTypeInfo.meTypeId == 
EXC_CHTYPEID_BUBBLES) && (aRole == EXC_CHPROP_ROLE_SIZEVALUES) )
                 {
-                    xBubbleSeq = xTmpValueSeq;
+                    xBubbleSeq = std::move(xTmpValueSeq);
                     xTitleSeq = rLabeledSeq->getLabel();     // ignore role of 
label sequence
                 }
             }
diff --git a/sd/source/console/PresenterWindowManager.cxx 
b/sd/source/console/PresenterWindowManager.cxx
index 11457552e728..6b6b07e4ffe0 100644
--- a/sd/source/console/PresenterWindowManager.cxx
+++ b/sd/source/console/PresenterWindowManager.cxx
@@ -982,7 +982,7 @@ void PresenterWindowManager::ProvideBackgroundBitmap()
     }
     else
     {
-        mxScaledBackgroundBitmap = xBitmap;
+        mxScaledBackgroundBitmap = std::move(xBitmap);
     }
 }
 
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx 
b/sd/source/ui/animations/CustomAnimationPane.cxx
index 1925e4fdf8e9..b8bf3858e6f1 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -1774,7 +1774,7 @@ void CustomAnimationPane::onAdd()
         if( getTextSelection( maViewSelection, xShape, aParaList ) )
         {
             ParagraphTarget aParaTarget;
-            aParaTarget.Shape = xShape;
+            aParaTarget.Shape = std::move(xShape);
 
             for( const auto& rPara : aParaList )
             {
diff --git a/sd/source/ui/unoidl/randomnode.cxx 
b/sd/source/ui/unoidl/randomnode.cxx
index d8f0fda1d80a..98ff26f2b95f 100644
--- a/sd/source/ui/unoidl/randomnode.cxx
+++ b/sd/source/ui/unoidl/randomnode.cxx
@@ -527,7 +527,7 @@ Reference< XAnimationNode > SAL_CALL 
RandomAnimationNode::appendChild( const Ref
     }
 
     if( !maTarget.hasValue() && !mxFirstNode.is() )
-        mxFirstNode = xAnimate;
+        mxFirstNode = std::move(xAnimate);
 
     return newChild;
 }
diff --git a/sfx2/source/control/recentdocsviewitem.cxx 
b/sfx2/source/control/recentdocsviewitem.cxx
index e557c66fdb77..0bd2cf0cebc2 100644
--- a/sfx2/source/control/recentdocsviewitem.cxx
+++ b/sfx2/source/control/recentdocsviewitem.cxx
@@ -385,7 +385,7 @@ void RecentDocsViewItem::OpenDocument()
     // executed. VCL is not able to survive this as it wants to call listeners
     // after select!!!
     sfx2::LoadRecentFile *const pLoadRecentFile = new sfx2::LoadRecentFile;
-    pLoadRecentFile->xDispatch = xDispatch;
+    pLoadRecentFile->xDispatch = std::move(xDispatch);
     pLoadRecentFile->aTargetURL = std::move(aTargetURL);
     pLoadRecentFile->aArgSeq = aArgsList;
     pLoadRecentFile->pView = &mrParentView;
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 016b25429098..af44df8cd92a 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -4799,7 +4799,7 @@ bool SfxMedium::SwitchDocumentToFile( const OUString& 
aURL )
             SetPhysicalName_Impl( OUString() );
             SetName( aOrigURL );
             GetMedium_Impl();
-            pImpl->xStorage = xStorage;
+            pImpl->xStorage = std::move(xStorage);
         }
     }
 
diff --git a/svl/source/misc/sharecontrolfile.cxx 
b/svl/source/misc/sharecontrolfile.cxx
index 9df41b54d77b..10c6e8b24944 100644
--- a/svl/source/misc/sharecontrolfile.cxx
+++ b/svl/source/misc/sharecontrolfile.cxx
@@ -93,7 +93,7 @@ ShareControlFile::ShareControlFile( std::u16string_view 
aOrigURL )
         m_xInputStream.set( xStream->getInputStream(), uno::UNO_SET_THROW );
         m_xOutputStream.set( xStream->getOutputStream(), uno::UNO_SET_THROW );
         m_xTruncate.set( m_xOutputStream, uno::UNO_QUERY_THROW );
-        m_xStream = xStream;
+        m_xStream = std::move(xStream);
     }
 
     if ( !IsValid() )
diff --git a/svtools/source/misc/acceleratorexecute.cxx 
b/svtools/source/misc/acceleratorexecute.cxx
index b7370436b175..2415886e0f23 100644
--- a/svtools/source/misc/acceleratorexecute.cxx
+++ b/svtools/source/misc/acceleratorexecute.cxx
@@ -159,9 +159,9 @@ void AcceleratorExecute::init(const css::uno::Reference< 
css::uno::XComponentCon
     // SAFE -> ------------------------------
     aLock.lock();
 
-    m_xGlobalCfg = xGlobalCfg;
-    m_xModuleCfg = xModuleCfg;
-    m_xDocCfg    = xDocCfg   ;
+    m_xGlobalCfg = std::move(xGlobalCfg);
+    m_xModuleCfg = std::move(xModuleCfg);
+    m_xDocCfg    = std::move(xDocCfg);
 
     aLock.unlock();
     // <- SAFE ----------------------------------
diff --git a/svtools/source/uno/popupmenucontrollerbase.cxx 
b/svtools/source/uno/popupmenucontrollerbase.cxx
index 85065724f9f3..de46b999e4d7 100644
--- a/svtools/source/uno/popupmenucontrollerbase.cxx
+++ b/svtools/source/uno/popupmenucontrollerbase.cxx
@@ -324,7 +324,7 @@ void PopupMenuControllerBase::initializeImpl( 
std::unique_lock<std::mutex>& /*rG
 
     if ( xFrame.is() && !aCommandURL.isEmpty() )
     {
-        m_xFrame        = xFrame;
+        m_xFrame        = std::move(xFrame);
         m_aCommandURL   = aCommandURL;
         m_aBaseURL      = determineBaseURL( aCommandURL );
         m_bInitialized  = true;
diff --git a/svx/source/form/fmPropBrw.cxx b/svx/source/form/fmPropBrw.cxx
index 8516cb2d49f3..466efe1ef8ec 100644
--- a/svx/source/form/fmPropBrw.cxx
+++ b/svx/source/form/fmPropBrw.cxx
@@ -520,7 +520,7 @@ void FmPropBrw::impl_ensurePropertyBrowser_nothrow( 
FmFormShell* _pFormShell )
     {
         DBG_UNHANDLED_EXCEPTION("svx");
     }
-    m_xLastKnownDocument = xDocument;
+    m_xLastKnownDocument = std::move(xDocument);
 }
 
 
diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx
index dca4a634ceee..e43c8606c9ad 100644
--- a/svx/source/form/fmshimp.cxx
+++ b/svx/source/form/fmshimp.cxx
@@ -3433,13 +3433,13 @@ void FmXFormShell::CreateExternalView_Lock()
             Reference< XResultSet> xForm(xCurrentNavController->getModel(), 
UNO_QUERY);
             aArg.Value <<= xForm;
 
-            m_xExternalDisplayedForm = xForm;
+            m_xExternalDisplayedForm = std::move(xForm);
                 // do this before dispatching the "attach" command, as the 
attach may result in a call to our queryDispatch (for the FormSlots)
                 // which needs the m_xExternalDisplayedForm
 
             xAttachDispatch->dispatch(aAttachURL, Sequence< 
PropertyValue>(&aArg, 1));
 
-            m_xExtViewTriggerController = xCurrentNavController;
+            m_xExtViewTriggerController = std::move(xCurrentNavController);
 
             // we want to know modifications done in the external view
             // if the external controller is a XFormController we can use all 
our default handlings for it
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx
index 7ac03cd85787..354f32ac4f86 100644
--- a/sw/source/filter/ww8/ww8par3.cxx
+++ b/sw/source/filter/ww8/ww8par3.cxx
@@ -2586,7 +2586,7 @@ bool SwMSConvertControls::InsertControl(
     xControlShape->setControl( xControlModel );
 
     if (pShape)
-        *pShape = xShape;
+        *pShape = std::move(xShape);
 
     return true;
 }
diff --git a/sw/source/uibase/dbui/mailmergehelper.cxx 
b/sw/source/uibase/dbui/mailmergehelper.cxx
index 6681f3a7a15a..fb7baca39a12 100644
--- a/sw/source/uibase/dbui/mailmergehelper.cxx
+++ b/sw/source/uibase/dbui/mailmergehelper.cxx
@@ -128,7 +128,7 @@ uno::Reference< mail::XSmtpService > ConnectToSmtpServer(
                         rConfigItem.GetInServerPort(),
                         u"Insecure"_ustr);
             xInMailService->connect(xConnectionContext, xAuthenticator);
-            rxInMailService = xInMailService;
+            rxInMailService = std::move(xInMailService);
         }
         uno::Reference< mail::XAuthenticator> xAuthenticator;
         if(rConfigItem.IsAuthentication() &&
diff --git a/toolkit/source/controls/grid/sortablegriddatamodel.cxx 
b/toolkit/source/controls/grid/sortablegriddatamodel.cxx
index 4ca74107805b..d74a496ad1ec 100644
--- a/toolkit/source/controls/grid/sortablegriddatamodel.cxx
+++ b/toolkit/source/controls/grid/sortablegriddatamodel.cxx
@@ -312,8 +312,8 @@ void lcl_clear( STLCONTAINER& i_container )
         if ( !xDelegator.is() )
             throw IllegalArgumentException( OUString(), *this, 1 );
 
-        m_delegator = xDelegator;
-        m_collator = xCollator;
+        m_delegator = std::move(xDelegator);
+        m_collator = std::move(xCollator);
 
         m_delegator->addGridDataListener( this );
 
diff --git a/unoxml/source/dom/element.cxx b/unoxml/source/dom/element.cxx
index 69b40dc3ab5c..1a59d85513f8 100644
--- a/unoxml/source/dom/element.cxx
+++ b/unoxml/source/dom/element.cxx
@@ -198,7 +198,7 @@ namespace DOM
         {}
 
         // restore after children have been processed
-        i_rContext.mxCurrentHandler = xParentHandler;
+        i_rContext.mxCurrentHandler = std::move(xParentHandler);
         popContext(i_rContext);
     }
 
diff --git a/unoxml/source/dom/saxbuilder.cxx b/unoxml/source/dom/saxbuilder.cxx
index 2ab050820ee0..018d2b23734b 100644
--- a/unoxml/source/dom/saxbuilder.cxx
+++ b/unoxml/source/dom/saxbuilder.cxx
@@ -132,7 +132,7 @@ namespace DOM
         Reference< XDocumentBuilder > 
aBuilder(DocumentBuilder::create(m_xContext));
         Reference< XDocument > aDocument = aBuilder->newDocument();
         m_aNodeStack.push(aDocument);
-        m_aDocument = aDocument;
+        m_aDocument = std::move(aDocument);
         m_aState = SAXDocumentBuilderState_BUILDING_DOCUMENT;
     }
 
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index 68974f2a09f5..b28480816a6f 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -681,7 +681,7 @@ void SAL_CALL SvXMLExport::initialize( const uno::Sequence< 
uno::Any >& aArgumen
             xValue, UNO_QUERY );
         if( xTmpDocHandler.is() )
         {
-            mxHandler = xTmpDocHandler;
+            mxHandler = std::move(xTmpDocHandler);
             rAny >>= mxExtHandler;
 
             if (mxNumberFormatsSupplier.is() && mpNumExport == nullptr)
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index ab27e7110620..eaa9ac06d809 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -985,7 +985,7 @@ void SAL_CALL SvXMLImport::initialize( const uno::Sequence< 
uno::Any >& aArgumen
         uno::Reference<document::XEmbeddedObjectResolver> xTmpObjectResolver(
             xValue, UNO_QUERY );
         if( xTmpObjectResolver.is() )
-            mxEmbeddedResolver = xTmpObjectResolver;
+            mxEmbeddedResolver = std::move(xTmpObjectResolver);
 
         uno::Reference<beans::XPropertySet> xTmpPropSet( xValue, UNO_QUERY );
         if( xTmpPropSet.is() )
diff --git a/xmloff/source/text/XMLSectionExport.cxx 
b/xmloff/source/text/XMLSectionExport.cxx
index 45bd7dc8f06d..0969bb469d41 100644
--- a/xmloff/source/text/XMLSectionExport.cxx
+++ b/xmloff/source/text/XMLSectionExport.cxx
@@ -151,7 +151,7 @@ bool XMLSectionExport::GetIndex(
             // if the enclosing section is "our" section, then we are an index!
             if (rSection == xEnclosingSection)
             {
-                rIndex = xDocumentIndex;
+                rIndex = std::move(xDocumentIndex);
                 bRet = true;
             }
             // else: index header or regular section

Reply via email to