accessibility/source/standard/accessiblemenubasecomponent.cxx |    2 +-
 basctl/source/dlged/propbrw.cxx                               |    2 +-
 basic/source/uno/namecont.cxx                                 |    2 +-
 chart2/source/controller/main/ChartController_Tools.cxx       |    2 +-
 chart2/source/controller/main/ShapeController.cxx             |    2 +-
 connectivity/source/commontools/statementcomposer.cxx         |    2 +-
 connectivity/source/cpool/ZConnectionPool.cxx                 |    2 +-
 connectivity/source/drivers/postgresql/pq_connection.cxx      |    2 +-
 cppuhelper/source/servicemanager.cxx                          |    6 +++---
 dbaccess/source/ui/tabledesign/TableController.cxx            |    2 +-
 dbaccess/source/ui/uno/copytablewizard.cxx                    |    4 ++--
 desktop/source/deployment/manager/dp_managerfac.cxx           |    2 +-
 desktop/source/migration/migration.cxx                        |    2 +-
 drawinglayer/source/primitive2d/controlprimitive2d.cxx        |    2 +-
 editeng/source/misc/splwrap.cxx                               |    2 +-
 extensions/source/dbpilots/controlwizard.cxx                  |    2 +-
 extensions/source/update/ui/updatecheckui.cxx                 |    2 +-
 forms/source/component/FormComponent.cxx                      |    2 +-
 forms/source/misc/InterfaceContainer.cxx                      |    2 +-
 framework/source/accelerators/presethandler.cxx               |    6 +++---
 framework/source/dispatch/closedispatcher.cxx                 |    2 +-
 framework/source/fwe/classes/framelistanalyzer.cxx            |    4 ++--
 framework/source/helper/statusindicatorfactory.cxx            |    2 +-
 framework/source/layoutmanager/layoutmanager.cxx              |    2 +-
 framework/source/services/frame.cxx                           |    2 +-
 framework/source/services/taskcreatorsrv.cxx                  |    2 +-
 framework/source/uiconfiguration/imagemanagerimpl.cxx         |    2 +-
 framework/source/uielement/complextoolbarcontroller.cxx       |    2 +-
 framework/source/uielement/genericstatusbarcontroller.cxx     |    2 +-
 framework/source/uielement/subtoolbarcontroller.cxx           |    2 +-
 i18npool/source/calendar/calendarImpl.cxx                     |    2 +-
 linguistic/source/convdiclist.cxx                             |    2 +-
 linguistic/source/gciterator.cxx                              |    4 ++--
 oox/source/export/DMLPresetShapeExport.cxx                    |    2 +-
 package/source/xstor/owriteablestream.cxx                     |    4 ++--
 package/source/zippackage/ZipPackage.cxx                      |    2 +-
 pyuno/source/module/pyuno.cxx                                 |    2 +-
 reportdesign/source/core/api/ReportControlModel.cxx           |    2 +-
 reportdesign/source/ui/report/ReportController.cxx            |    4 ++--
 sc/source/filter/excel/xechart.cxx                            |    2 +-
 sc/source/filter/excel/xiescher.cxx                           |    2 +-
 sc/source/filter/xml/xmlexprt.cxx                             |    2 +-
 sc/source/ui/unoobj/viewuno.cxx                               |    2 +-
 sc/source/ui/vba/excelvbahelper.cxx                           |    2 +-
 sc/source/ui/vba/vbarange.cxx                                 |    2 +-
 sd/source/ui/animations/CustomAnimationPane.cxx               |    2 +-
 sd/source/ui/table/TableDesignPane.cxx                        |    2 +-
 sfx2/source/bastyp/progress.cxx                               |    2 +-
 sfx2/source/doc/docfile.cxx                                   |    2 +-
 sfx2/source/doc/guisaveas.cxx                                 |    4 ++--
 sfx2/source/doc/sfxbasemodel.cxx                              |    2 +-
 sfx2/source/inet/inettbc.cxx                                  |    2 +-
 sfx2/source/view/lokcharthelper.cxx                           |    2 +-
 svtools/source/filter/exportdialog.cxx                        |    2 +-
 svx/source/fmcomp/fmgridcl.cxx                                |    4 ++--
 svx/source/form/fmundo.cxx                                    |    2 +-
 svx/source/form/fmvwimp.cxx                                   |    2 +-
 svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx             |    2 +-
 svx/source/table/tabledesign.cxx                              |    2 +-
 sw/source/core/access/accpara.cxx                             |    2 +-
 sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx          |    4 ++--
 toolkit/source/awt/vclxaccessiblecomponent.cxx                |    2 +-
 toolkit/source/controls/accessiblecontrolcontext.cxx          |    2 +-
 ucb/source/ucp/hierarchy/hierarchydata.cxx                    |    4 ++--
 ucbhelper/source/provider/registerucb.cxx                     |    2 +-
 unotools/source/config/lingucfg.cxx                           |    2 +-
 vcl/source/gdi/formpdfexport.cxx                              |    2 +-
 xmloff/source/chart/SchXMLImport.cxx                          |    2 +-
 xmloff/source/core/xmlimp.cxx                                 |    4 ++--
 xmloff/source/text/XMLTextMarkImportContext.cxx               |    2 +-
 xmloff/source/text/txtimp.cxx                                 |    2 +-
 xmloff/source/text/txtparai.cxx                               |    2 +-
 72 files changed, 86 insertions(+), 86 deletions(-)

New commits:
commit 24ac64ca1beab50e59277b2ec25424a3badf87bb
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sat Oct 26 15:34:17 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Sat Oct 26 19:25:15 2024 +0200

    cid#1556052 Data race condition
    
    Change-Id: Id7a5013cbb667ef728b633e2e17f3a16d36ec753
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175680
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins

diff --git a/sw/source/core/access/accpara.cxx 
b/sw/source/core/access/accpara.cxx
index 4b5aeae0450d..1a5634124777 100644
--- a/sw/source/core/access/accpara.cxx
+++ b/sw/source/core/access/accpara.cxx
@@ -237,7 +237,7 @@ void SwAccessibleParagraph::GetStates( sal_Int64& rStateSet 
)
     assert(pFrame);
     if (pCaret != nullptr &&
         sw::FrameContainsNode(*pFrame, pCaret->GetPoint()->GetNodeIndex()) &&
-        m_nOldCaretPos != -1)
+        HasCursor())
     {
         vcl::Window *pWin = GetWindow();
         if( pWin && pWin->HasFocus() )
commit 6f1508f4de761e564146f3111345270403838468
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sat Oct 26 10:56:43 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Sat Oct 26 19:25:03 2024 +0200

    cid#1555767 COPY_INSTEAD_OF_MOVE
    
    and
    
    cid#1555770 COPY_INSTEAD_OF_MOVE
    cid#1555788 COPY_INSTEAD_OF_MOVE
    cid#1555789 COPY_INSTEAD_OF_MOVE
    cid#1555798 COPY_INSTEAD_OF_MOVE
    cid#1555816 COPY_INSTEAD_OF_MOVE
    cid#1555822 COPY_INSTEAD_OF_MOVE
    cid#1555835 COPY_INSTEAD_OF_MOVE
    cid#1555845 COPY_INSTEAD_OF_MOVE
    cid#1555859 COPY_INSTEAD_OF_MOVE
    cid#1555864 COPY_INSTEAD_OF_MOVE
    cid#1555868 COPY_INSTEAD_OF_MOVE
    cid#1555892 COPY_INSTEAD_OF_MOVE
    cid#1555896 COPY_INSTEAD_OF_MOVE
    cid#1555921 COPY_INSTEAD_OF_MOVE
    cid#1555932 COPY_INSTEAD_OF_MOVE
    cid#1555935 COPY_INSTEAD_OF_MOVE
    cid#1555944 COPY_INSTEAD_OF_MOVE
    cid#1555952 COPY_INSTEAD_OF_MOVE
    cid#1555985 COPY_INSTEAD_OF_MOVE
    cid#1556024 COPY_INSTEAD_OF_MOVE
    cid#1556038 COPY_INSTEAD_OF_MOVE
    cid#1556042 COPY_INSTEAD_OF_MOVE
    cid#1556044 COPY_INSTEAD_OF_MOVE
    cid#1556060 COPY_INSTEAD_OF_MOVE
    cid#1556083 COPY_INSTEAD_OF_MOVE
    cid#1556085 COPY_INSTEAD_OF_MOVE
    cid#1556090 COPY_INSTEAD_OF_MOVE
    cid#1556136 COPY_INSTEAD_OF_MOVE
    cid#1556157 COPY_INSTEAD_OF_MOVE
    cid#1556159 COPY_INSTEAD_OF_MOVE
    cid#1556172 COPY_INSTEAD_OF_MOVE
    cid#1556179 COPY_INSTEAD_OF_MOVE
    cid#1556187 COPY_INSTEAD_OF_MOVE
    cid#1556255 COPY_INSTEAD_OF_MOVE
    cid#1556256 COPY_INSTEAD_OF_MOVE
    cid#1556266 COPY_INSTEAD_OF_MOVE
    cid#1556275 COPY_INSTEAD_OF_MOVE
    cid#1556290 COPY_INSTEAD_OF_MOVE
    cid#1556294 COPY_INSTEAD_OF_MOVE
    cid#1556301 COPY_INSTEAD_OF_MOVE
    cid#1556311 COPY_INSTEAD_OF_MOVE
    cid#1556318 COPY_INSTEAD_OF_MOVE
    cid#1556326 COPY_INSTEAD_OF_MOVE
    cid#1556369 COPY_INSTEAD_OF_MOVE
    cid#1556374 COPY_INSTEAD_OF_MOVE
    cid#1556387 COPY_INSTEAD_OF_MOVE
    cid#1556388 COPY_INSTEAD_OF_MOVE
    cid#1556417 COPY_INSTEAD_OF_MOVE
    cid#1556425 COPY_INSTEAD_OF_MOVE
    cid#1556435 COPY_INSTEAD_OF_MOVE
    cid#1556495 COPY_INSTEAD_OF_MOVE
    cid#1556497 COPY_INSTEAD_OF_MOVE
    cid#1556501 COPY_INSTEAD_OF_MOVE
    cid#1556503 COPY_INSTEAD_OF_MOVE
    cid#1556520 COPY_INSTEAD_OF_MOVE
    cid#1556523 COPY_INSTEAD_OF_MOVE
    cid#1556562 COPY_INSTEAD_OF_MOVE
    cid#1556573 COPY_INSTEAD_OF_MOVE
    cid#1556576 COPY_INSTEAD_OF_MOVE
    cid#1556598 COPY_INSTEAD_OF_MOVE
    cid#1556615 COPY_INSTEAD_OF_MOVE
    cid#1556626 COPY_INSTEAD_OF_MOVE
    cid#1556671 COPY_INSTEAD_OF_MOVE
    cid#1556689 COPY_INSTEAD_OF_MOVE
    cid#1556701 COPY_INSTEAD_OF_MOVE
    cid#1556713 COPY_INSTEAD_OF_MOVE
    cid#1556758 COPY_INSTEAD_OF_MOVE
    cid#1556759 COPY_INSTEAD_OF_MOVE
    cid#1556788 COPY_INSTEAD_OF_MOVE
    cid#1556811 COPY_INSTEAD_OF_MOVE
    cid#1556821 COPY_INSTEAD_OF_MOVE
    cid#1556824 COPY_INSTEAD_OF_MOVE
    cid#1556825 COPY_INSTEAD_OF_MOVE
    cid#1556862 COPY_INSTEAD_OF_MOVE
    
    Change-Id: I4925a79688a983bb07252600430039ec0bcb75b8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175678
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins

diff --git a/accessibility/source/standard/accessiblemenubasecomponent.cxx 
b/accessibility/source/standard/accessiblemenubasecomponent.cxx
index 66d90a0d7087..5369ac3bd2c9 100644
--- a/accessibility/source/standard/accessiblemenubasecomponent.cxx
+++ b/accessibility/source/standard/accessiblemenubasecomponent.cxx
@@ -347,7 +347,7 @@ Reference< XAccessible > 
OAccessibleMenuBaseComponent::GetChildAt( const awt::Po
                 Point aPos = VCLUnoHelper::ConvertToVCLPoint(rPoint);
                 if ( aRect.Contains( aPos ) )
                 {
-                    xChild = xAcc;
+                    xChild = std::move(xAcc);
                     break;
                 }
             }
diff --git a/basctl/source/dlged/propbrw.cxx b/basctl/source/dlged/propbrw.cxx
index 12a0e671863a..0a23093ecf71 100644
--- a/basctl/source/dlged/propbrw.cxx
+++ b/basctl/source/dlged/propbrw.cxx
@@ -443,7 +443,7 @@ void PropBrw::ImplUpdate( const Reference< XModel >& 
_rxContextDocument, SdrView
 
     if ( xContextDocument != m_xContextDocument )
     {
-        m_xContextDocument = xContextDocument;
+        m_xContextDocument = std::move(xContextDocument);
         ImplReCreateController();
     }
 
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index a554edb9d8c6..e90be0c4849a 100644
--- a/basic/source/uno/namecont.cxx
+++ b/basic/source/uno/namecont.cxx
@@ -1697,7 +1697,7 @@ bool SfxLibraryContainer::implLoadLibraryIndexFile(  
SfxLibrary* pLib,
     }
 
     InputSource source;
-    source.aInputStream = xInput;
+    source.aInputStream = std::move(xInput);
     source.sSystemId    = aLibInfoPath;
 
     // start parsing
diff --git a/chart2/source/controller/main/ChartController_Tools.cxx 
b/chart2/source/controller/main/ChartController_Tools.cxx
index a988f6ed9a6b..e61011ae0a77 100644
--- a/chart2/source/controller/main/ChartController_Tools.cxx
+++ b/chart2/source/controller/main/ChartController_Tools.cxx
@@ -425,7 +425,7 @@ void ChartController::impl_PasteShapes( SdrModel* pModel )
 
                 pDestPage->InsertObject( pNewObj.get() );
                 m_pDrawViewWrapper->AddUndo( 
std::make_unique<SdrUndoInsertObj>( *pNewObj ) );
-                xSelShape = xShape;
+                xSelShape = std::move(xShape);
             }
         }
     }
diff --git a/chart2/source/controller/main/ShapeController.cxx 
b/chart2/source/controller/main/ShapeController.cxx
index cdcc016541bf..05f78367d66d 100644
--- a/chart2/source/controller/main/ShapeController.cxx
+++ b/chart2/source/controller/main/ShapeController.cxx
@@ -585,7 +585,7 @@ SdrObject* ShapeController::getFirstAdditionalShape()
                 {
                     if ( xShape.is() && xShape != xChartRoot )
                     {
-                        xFirstShape = xShape;
+                        xFirstShape = std::move(xShape);
                         break;
                     }
                 }
diff --git a/connectivity/source/commontools/statementcomposer.cxx 
b/connectivity/source/commontools/statementcomposer.cxx
index 3ff71fcdbf2d..1ecaf36ea3bd 100644
--- a/connectivity/source/commontools/statementcomposer.cxx
+++ b/connectivity/source/commontools/statementcomposer.cxx
@@ -216,7 +216,7 @@ namespace dbtools
 
                     sStatement = xComposer->getQuery();
 
-                    _rData.xComposer = xComposer;
+                    _rData.xComposer = std::move(xComposer);
                     _rData.bComposerDirty = false;
                 }
             }
diff --git a/connectivity/source/cpool/ZConnectionPool.cxx 
b/connectivity/source/cpool/ZConnectionPool.cxx
index f00e512e81d9..91790a7159ec 100644
--- a/connectivity/source/cpool/ZConnectionPool.cxx
+++ b/connectivity/source/cpool/ZConnectionPool.cxx
@@ -215,7 +215,7 @@ Reference< XConnection> 
OConnectionPool::createNewConnection(const OUString& _rU
         aPack.nALiveCount               = m_nALiveCount;
         TActiveConnectionInfo aActiveInfo;
         aActiveInfo.aPos                = m_aPool.emplace(nId,aPack).first;
-        aActiveInfo.xPooledConnection   = xPooledConnection;
+        aActiveInfo.xPooledConnection   = std::move(xPooledConnection);
         m_aActiveConnections.emplace(xConnection,aActiveInfo);
 
         if(m_xInvalidator->isExpired())
diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx 
b/connectivity/source/drivers/postgresql/pq_connection.cxx
index 17f4128c8297..9a9754014d90 100644
--- a/connectivity/source/drivers/postgresql/pq_connection.cxx
+++ b/connectivity/source/drivers/postgresql/pq_connection.cxx
@@ -514,7 +514,7 @@ void Connection::initialize( const Sequence< Any >& 
aArguments )
     m_settings.user = OUString( p, strlen(p), RTL_TEXTENCODING_UTF8);
     p = PQdb( m_settings.pConnection );
     m_settings.catalog = OUString( p, strlen(p), RTL_TEXTENCODING_UTF8);
-    m_settings.tc = tc;
+    m_settings.tc = std::move(tc);
 
     SAL_INFO("connectivity.postgresql", "connection to '" << url << "' 
successfully opened");
 }
diff --git a/cppuhelper/source/servicemanager.cxx 
b/cppuhelper/source/servicemanager.cxx
index 58abbc4ab9d4..8ace85e1e30b 100644
--- a/cppuhelper/source/servicemanager.cxx
+++ b/cppuhelper/source/servicemanager.cxx
@@ -756,7 +756,7 @@ void 
cppuhelper::ServiceManager::Data::Implementation::updateDisposeInstance(
         if (comp.is()) {
             std::unique_lock g(mutex);
             if (dispose) {
-                disposeInstance = comp;
+                disposeInstance = std::move(comp);
             }
         }
     }
@@ -872,8 +872,8 @@ void cppuhelper::ServiceManager::loadImplementation(
     {
         implementation->status = Data::Implementation::STATUS_LOADED;
         implementation->constructorFn = std::move(ctor);
-        implementation->factory1 = f1;
-        implementation->factory2 = f2;
+        implementation->factory1 = std::move(f1);
+        implementation->factory2 = std::move(f2);
     }
 }
 
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx 
b/dbaccess/source/ui/tabledesign/TableController.cxx
index 941b24914aac..7b5b6d152cfc 100644
--- a/dbaccess/source/ui/tabledesign/TableController.cxx
+++ b/dbaccess/source/ui/tabledesign/TableController.cxx
@@ -1318,7 +1318,7 @@ void OTableController::assignTable()
     if (!xProp.is())
         return;
 
-    m_xTable = xProp;
+    m_xTable = std::move(xProp);
     startTableListening();
 
     // check if we set the table editable
diff --git a/dbaccess/source/ui/uno/copytablewizard.cxx 
b/dbaccess/source/ui/uno/copytablewizard.cxx
index 171cc70d20a3..13a4f050731b 100644
--- a/dbaccess/source/ui/uno/copytablewizard.cxx
+++ b/dbaccess/source/ui/uno/copytablewizard.cxx
@@ -875,7 +875,7 @@ SharedConnection 
CopyTableWizard::impl_extractConnection_throw( const Reference<
     while ( false );
 
     if ( xInteractionHandler != m_xInteractionHandler )
-        _out_rxDocInteractionHandler = xInteractionHandler;
+        _out_rxDocInteractionHandler = std::move(xInteractionHandler);
 
     return xConnection;
 }
@@ -1499,7 +1499,7 @@ void SAL_CALL CopyTableWizard::initialize( const 
Sequence< Any >& _rArguments )
         impl_ensureDataAccessDescriptor_throw( _rArguments, 1, 
m_xDestConnection, xDestDocHandler );
 
         if ( xDestDocHandler.is() && !m_xInteractionHandler.is() )
-            m_xInteractionHandler = xDestDocHandler;
+            m_xInteractionHandler = std::move(xDestDocHandler);
 
         Reference< XPropertySet > xInteractionHandler(m_xInteractionHandler, 
UNO_QUERY);
         if (xInteractionHandler.is())
diff --git a/desktop/source/deployment/manager/dp_managerfac.cxx 
b/desktop/source/deployment/manager/dp_managerfac.cxx
index e67769dacd76..d3bd911e36e9 100644
--- a/desktop/source/deployment/manager/dp_managerfac.cxx
+++ b/desktop/source/deployment/manager/dp_managerfac.cxx
@@ -164,7 +164,7 @@ PackageManagerFactoryImpl::getPackageManager( OUString 
const & context )
         {
             guard.clear();
             try_dispose( xRet );
-            xRet = xAlreadyIn;
+            xRet = std::move(xAlreadyIn);
         }
         else
         {
diff --git a/desktop/source/migration/migration.cxx 
b/desktop/source/migration/migration.cxx
index eb2c548eb10a..c5ecbdd7dd02 100644
--- a/desktop/source/migration/migration.cxx
+++ b/desktop/source/migration/migration.cxx
@@ -1070,7 +1070,7 @@ void MigrationImpl::mergeOldToNewVersion(const 
uno::Reference< ui::XUIConfigurat
                 }
 
                 if (sCommandURL == sToken) {
-                    xTemp = xChild;
+                    xTemp = std::move(xChild);
                     break;
                 }
             }
diff --git a/drawinglayer/source/primitive2d/controlprimitive2d.cxx 
b/drawinglayer/source/primitive2d/controlprimitive2d.cxx
index 66d92c2d60df..733ccbaad014 100644
--- a/drawinglayer/source/primitive2d/controlprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/controlprimitive2d.cxx
@@ -74,7 +74,7 @@ namespace drawinglayer::primitive2d
                 xXControl->setModel(getControlModel());
 
                 // remember XControl
-                mxXControl = xXControl;
+                mxXControl = std::move(xXControl);
             }
         }
 
diff --git a/editeng/source/misc/splwrap.cxx b/editeng/source/misc/splwrap.cxx
index 67c3dc28e64a..8e3684606cfb 100644
--- a/editeng/source/misc/splwrap.cxx
+++ b/editeng/source/misc/splwrap.cxx
@@ -394,7 +394,7 @@ Reference< XDictionary >  SvxSpellWrapper::GetAllRightDic()
                     Reference< frame::XStorable >  xStor( xTmp, UNO_QUERY );
                     if (xStor.is() && xStor->hasLocation() && 
!xStor->isReadonly())
                     {
-                        xDic = xTmp;
+                        xDic = std::move(xTmp);
                     }
                 }
             }
diff --git a/extensions/source/dbpilots/controlwizard.cxx 
b/extensions/source/dbpilots/controlwizard.cxx
index 4b08658c5cf5..9293f6add16c 100644
--- a/extensions/source/dbpilots/controlwizard.cxx
+++ b/extensions/source/dbpilots/controlwizard.cxx
@@ -340,7 +340,7 @@ namespace dbp
             {
                 DBG_ASSERT(xPage.is(), "OControlWizard::implDeterminePage: 
can't determine the page (no model)!");
             }
-            m_aContext.xDrawPage = xPage;
+            m_aContext.xDrawPage = std::move(xPage);
         }
         catch(const Exception&)
         {
diff --git a/extensions/source/update/ui/updatecheckui.cxx 
b/extensions/source/update/ui/updatecheckui.cxx
index 2bd7d08ea08e..118cf0316481 100644
--- a/extensions/source/update/ui/updatecheckui.cxx
+++ b/extensions/source/update/ui/updatecheckui.cxx
@@ -207,7 +207,7 @@ void UpdateCheckUI::setPropertyValue(const OUString& 
rPropertyName,
         rValue >>= aJob;
         if ( !aJob.is() )
             throw lang::IllegalArgumentException();
-        mrJob = aJob;
+        mrJob = std::move(aJob);
     }
     else if (rPropertyName == PROPERTY_SHOW_MENUICON ) {
         bool bShowMenuIcon = false;
diff --git a/forms/source/component/FormComponent.cxx 
b/forms/source/component/FormComponent.cxx
index 0c32492954b0..b36329283262 100644
--- a/forms/source/component/FormComponent.cxx
+++ b/forms/source/component/FormComponent.cxx
@@ -1747,7 +1747,7 @@ void 
OBoundControlModel::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, co
                 throw css::lang::IllegalArgumentException();
             }
 
-            m_xLabelControl = xAsPropSet;
+            m_xLabelControl = std::move(xAsPropSet);
             Reference<css::lang::XComponent> xComp(m_xLabelControl, UNO_QUERY);
             if (xComp.is())
                 
xComp->addEventListener(static_cast<css::lang::XEventListener*>(static_cast<XPropertyChangeListener*>(this)));
diff --git a/forms/source/misc/InterfaceContainer.cxx 
b/forms/source/misc/InterfaceContainer.cxx
index c8653b153b3c..758cae8a1de4 100644
--- a/forms/source/misc/InterfaceContainer.cxx
+++ b/forms/source/misc/InterfaceContainer.cxx
@@ -748,7 +748,7 @@ void OInterfaceContainer::approveNewElement( const 
Reference< XPropertySet >& _r
     if ( _pElement )
     {
         _pElement->xPropertySet = _rxObject;
-        _pElement->xChild = xChild;
+        _pElement->xChild = std::move(xChild);
         _pElement->aElementTypeInterface = aCorrectType;
         _pElement->xInterface = Reference< XInterface >( _rxObject, UNO_QUERY 
);    // normalized XInterface
     }
diff --git a/framework/source/accelerators/presethandler.cxx 
b/framework/source/accelerators/presethandler.cxx
index bb4b8830d46a..3ab1b65abb87 100644
--- a/framework/source/accelerators/presethandler.cxx
+++ b/framework/source/accelerators/presethandler.cxx
@@ -427,9 +427,9 @@ void PresetHandler::connectToResource(      
PresetHandler::EConfigType
 
     {
         SolarMutexGuard g;
-        m_xWorkingStorageShare = xShare;
-        m_xWorkingStorageNoLang= xNoLang;
-        m_xWorkingStorageUser  = xUser;
+        m_xWorkingStorageShare = std::move(xShare);
+        m_xWorkingStorageNoLang= std::move(xNoLang);
+        m_xWorkingStorageUser  = std::move(xUser);
         m_sRelPathShare        = sRelPathShare;
         m_sRelPathUser         = sRelPathUser;
     }
diff --git a/framework/source/dispatch/closedispatcher.cxx 
b/framework/source/dispatch/closedispatcher.cxx
index 5c1826fb8b4a..98aa117de13a 100644
--- a/framework/source/dispatch/closedispatcher.cxx
+++ b/framework/source/dispatch/closedispatcher.cxx
@@ -605,7 +605,7 @@ css::uno::Reference< css::frame::XFrame > 
CloseDispatcher::static_impl_searchRig
             return xTarget;
 
         // c1) check parent frame inside next loop ...
-        xTarget = xParent;
+        xTarget = std::move(xParent);
     }
 }
 
diff --git a/framework/source/fwe/classes/framelistanalyzer.cxx 
b/framework/source/fwe/classes/framelistanalyzer.cxx
index d524d23fdf2f..64f11a7674ed 100644
--- a/framework/source/fwe/classes/framelistanalyzer.cxx
+++ b/framework/source/fwe/classes/framelistanalyzer.cxx
@@ -230,12 +230,12 @@ void FrameListAnalyzer::impl_analyze()
 
             if (bHidden)
             {
-                m_lOtherHiddenFrames[nHiddenStep] = xFrame;
+                m_lOtherHiddenFrames[nHiddenStep] = std::move(xFrame);
                 ++nHiddenStep;
             }
             else
             {
-                m_lOtherVisibleFrames[nVisibleStep] = xFrame;
+                m_lOtherVisibleFrames[nVisibleStep] = std::move(xFrame);
                 ++nVisibleStep;
             }
         }
diff --git a/framework/source/helper/statusindicatorfactory.cxx 
b/framework/source/helper/statusindicatorfactory.cxx
index a2a91e6f32fe..fe88000996f8 100644
--- a/framework/source/helper/statusindicatorfactory.cxx
+++ b/framework/source/helper/statusindicatorfactory.cxx
@@ -436,7 +436,7 @@ void StatusIndicatorFactory::impl_createProgress()
     }
 
     std::scoped_lock g(m_mutex);
-    m_xProgress = xProgress;
+    m_xProgress = std::move(xProgress);
 }
 
 void StatusIndicatorFactory::impl_showProgress()
diff --git a/framework/source/layoutmanager/layoutmanager.cxx 
b/framework/source/layoutmanager/layoutmanager.cxx
index 12dcf29f6b0a..9f41150543d9 100644
--- a/framework/source/layoutmanager/layoutmanager.cxx
+++ b/framework/source/layoutmanager/layoutmanager.cxx
@@ -1668,7 +1668,7 @@ Sequence< Reference< ui::XUIElement > > SAL_CALL 
LayoutManager::getElements()
     if ( nMenuBarIndex >= 0 )
         pSeq[nMenuBarIndex] = xMenuBar;
     if ( nStatusBarIndex >= 0 )
-        pSeq[nStatusBarIndex] = xStatusBar;
+        pSeq[nStatusBarIndex] = std::move(xStatusBar);
 
     return aSeq;
 }
diff --git a/framework/source/services/frame.cxx 
b/framework/source/services/frame.cxx
index c0f2dca96d0e..081ead8e70b7 100644
--- a/framework/source/services/frame.cxx
+++ b/framework/source/services/frame.cxx
@@ -994,7 +994,7 @@ css::uno::Reference< css::frame::XFrame > SAL_CALL 
XFrameImpl::findFrame( const
 
     else if ( sTargetFrameName==SPECIALTARGET_PARENT )
     {
-        xTarget = xParent;
+        xTarget = std::move(xParent);
     }
 
     // I.III) "_top"
diff --git a/framework/source/services/taskcreatorsrv.cxx 
b/framework/source/services/taskcreatorsrv.cxx
index 2a53c0b0031d..1af36d0c0754 100644
--- a/framework/source/services/taskcreatorsrv.cxx
+++ b/framework/source/services/taskcreatorsrv.cxx
@@ -251,7 +251,7 @@ css::uno::Reference< css::awt::XWindow > 
TaskCreatorService::implts_createContai
         aDescriptor.Type                =   css::awt::WindowClass_TOP;
         aDescriptor.WindowServiceName   =   "dockingwindow";
         aDescriptor.ParentIndex         =   1;
-        aDescriptor.Parent              =   xParentWindowPeer;
+        aDescriptor.Parent              =   std::move(xParentWindowPeer);
         aDescriptor.Bounds              =   aPosSize;
         aDescriptor.WindowAttributes    =   
css::awt::VclWindowPeerAttribute::CLIPCHILDREN;
     }
diff --git a/framework/source/uiconfiguration/imagemanagerimpl.cxx 
b/framework/source/uiconfiguration/imagemanagerimpl.cxx
index 25cd0841efe9..e85d9a08789b 100644
--- a/framework/source/uiconfiguration/imagemanagerimpl.cxx
+++ b/framework/source/uiconfiguration/imagemanagerimpl.cxx
@@ -916,7 +916,7 @@ void ImageManagerImpl::removeImages( ::sal_Int16 
nImageType, const Sequence< OUS
         ConfigurationEvent aReplaceEvent;
         aReplaceEvent.aInfo           <<= nImageType;
         aReplaceEvent.Accessor        <<= xOwner;
-        aReplaceEvent.Source          = xOwner;
+        aReplaceEvent.Source          = std::move(xOwner);
         aReplaceEvent.ResourceURL     = m_aResourceString;
         aReplaceEvent.ReplacedElement = Any();
         aReplaceEvent.Element         <<= uno::Reference< XNameAccess 
>(pReplacedImages);
diff --git a/framework/source/uielement/complextoolbarcontroller.cxx 
b/framework/source/uielement/complextoolbarcontroller.cxx
index 610af1abf362..dc6868843fd8 100644
--- a/framework/source/uielement/complextoolbarcontroller.cxx
+++ b/framework/source/uielement/complextoolbarcontroller.cxx
@@ -254,7 +254,7 @@ void ComplexToolbarController::addNotifyInfo(
     NotifyInfo* pNotifyInfo = new NotifyInfo;
 
     pNotifyInfo->aEventName      = aEventName;
-    pNotifyInfo->xNotifyListener = xControlNotify;
+    pNotifyInfo->xNotifyListener = std::move(xControlNotify);
     pNotifyInfo->aSourceURL      = getInitializedURL();
 
     // Add frame as source to the information sequence
diff --git a/framework/source/uielement/genericstatusbarcontroller.cxx 
b/framework/source/uielement/genericstatusbarcontroller.cxx
index fefcbc381f16..5c149eaeb4f2 100644
--- a/framework/source/uielement/genericstatusbarcontroller.cxx
+++ b/framework/source/uielement/genericstatusbarcontroller.cxx
@@ -101,7 +101,7 @@ void SAL_CALL GenericStatusbarController::statusChanged(
     }
     else if ( ( rEvent.State >>= aGraphic ) && m_bOwnerDraw )
     {
-        m_xGraphic = aGraphic;
+        m_xGraphic = std::move(aGraphic);
     }
 
     // when the status is updated, and the controller is responsible for
diff --git a/framework/source/uielement/subtoolbarcontroller.cxx 
b/framework/source/uielement/subtoolbarcontroller.cxx
index 6fffe753653e..170acdc20d68 100644
--- a/framework/source/uielement/subtoolbarcontroller.cxx
+++ b/framework/source/uielement/subtoolbarcontroller.cxx
@@ -326,7 +326,7 @@ VclPtr<vcl::Window> 
SubToolBarController::createVclPopupWindow(vcl::Window* /*pP
 
                 // keep reference to UIElement to avoid its destruction
                 disposeUIElement();
-                m_xUIElement = xUIElement;
+                m_xUIElement = std::move(xUIElement);
 
                 VclPtr<vcl::Window> pTbxWindow = VCLUnoHelper::GetWindow( 
xSubToolBar );
                 if ( pTbxWindow && pTbxWindow->GetType() == 
WindowType::TOOLBOX )
diff --git a/i18npool/source/calendar/calendarImpl.cxx 
b/i18npool/source/calendar/calendarImpl.cxx
index 650629cf69cb..4fcaeba18224 100644
--- a/i18npool/source/calendar/calendarImpl.cxx
+++ b/i18npool/source/calendar/calendarImpl.cxx
@@ -109,7 +109,7 @@ CalendarImpl::loadCalendarTZ( const OUString& uniqueID, 
const css::lang::Locale&
     }
     catch ( Exception& )
     {   // restore previous calendar and re-throw
-        xCalendar = xOldCalendar;
+        xCalendar = std::move(xOldCalendar);
         throw;
     }
 
diff --git a/linguistic/source/convdiclist.cxx 
b/linguistic/source/convdiclist.cxx
index 3fa5cdc07081..e032f3cd2480 100644
--- a/linguistic/source/convdiclist.cxx
+++ b/linguistic/source/convdiclist.cxx
@@ -213,7 +213,7 @@ void SAL_CALL ConvDicNameContainer::replaceByName(
     rElement >>= xNew;
     if (!xNew.is() || xNew->getName() != rName)
         throw IllegalArgumentException();
-    aConvDics[ nRplcIdx ] = xNew;
+    aConvDics[ nRplcIdx ] = std::move(xNew);
 }
 
 void SAL_CALL ConvDicNameContainer::insertByName(
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx
index 2077c4dc4328..36bcdcc72119 100644
--- a/linguistic/source/gciterator.cxx
+++ b/linguistic/source/gciterator.cxx
@@ -694,7 +694,7 @@ void GrammarCheckingIterator::DequeueAndCheck()
                                     aRes.nBehindEndOfSentencePosition = 
nSuggestedEnd;
                                 }
 
-                                aRes.xFlatParagraph = xFlatPara;
+                                aRes.xFlatParagraph = std::move(xFlatPara);
                                 aRes.nStartOfSentencePosition = nStartPos;
                             }
                             else
@@ -702,7 +702,7 @@ void GrammarCheckingIterator::DequeueAndCheck()
                                 // no grammar checker -> no error
                                 // but we need to provide the data below in 
order to continue with the next sentence
                                 aRes.aDocumentIdentifier = aCurDocId;
-                                aRes.xFlatParagraph = xFlatPara;
+                                aRes.xFlatParagraph = std::move(xFlatPara);
                                 aRes.aText = aCurTxt;
                                 aRes.aLocale = std::move(aCurLocale);
                                 aRes.nStartOfSentencePosition = nStartPos;
diff --git a/oox/source/export/DMLPresetShapeExport.cxx 
b/oox/source/export/DMLPresetShapeExport.cxx
index f74399eb95e7..05f1f92a4f0e 100644
--- a/oox/source/export/DMLPresetShapeExport.cxx
+++ b/oox/source/export/DMLPresetShapeExport.cxx
@@ -36,7 +36,7 @@ DMLPresetShapeExporter::DMLPresetShapeExporter(DrawingML* 
pDMLExporter,
     // This class only work with custom shapes!
     OSL_ASSERT(xShape->getShapeType() == "com.sun.star.drawing.CustomShape");
 
-    m_xShape = xShape;
+    m_xShape = std::move(xShape);
     m_bHasHandleValues = false;
     uno::Reference<beans::XPropertySet> xShapeProps(m_xShape, uno::UNO_QUERY);
     css::uno::Sequence<css::beans::PropertyValue> aCustomShapeGeometry
diff --git a/package/source/xstor/owriteablestream.cxx 
b/package/source/xstor/owriteablestream.cxx
index 3a5f5253f5c5..88c2a4fd5e10 100644
--- a/package/source/xstor/owriteablestream.cxx
+++ b/package/source/xstor/owriteablestream.cxx
@@ -500,7 +500,7 @@ void OWriteStream_Impl::FillTempGetFileName()
             uno::Reference< io::XStream > xCacheStream = CreateMemoryStream( 
m_xContext );
             SAL_WARN_IF( !xCacheStream.is(), "package.xstor", "If the stream 
can not be created an exception must be thrown!" );
             m_xCacheSeek.set( xCacheStream, uno::UNO_QUERY_THROW );
-            m_xCacheStream = xCacheStream;
+            m_xCacheStream = std::move(xCacheStream);
         }
         else
         {
@@ -521,7 +521,7 @@ void OWriteStream_Impl::FillTempGetFileName()
                     xOutStream->writeBytes( aData );
                 }
                 m_xCacheSeek.set( xCacheStream, uno::UNO_QUERY_THROW );
-                m_xCacheStream = xCacheStream;
+                m_xCacheStream = std::move(xCacheStream);
                 m_xCacheSeek->seek( 0 );
             }
             else if ( !m_oTempFile.has_value() )
diff --git a/package/source/zippackage/ZipPackage.cxx 
b/package/source/zippackage/ZipPackage.cxx
index 371f37807be9..1b79a3808d95 100644
--- a/package/source/zippackage/ZipPackage.cxx
+++ b/package/source/zippackage/ZipPackage.cxx
@@ -1419,7 +1419,7 @@ uno::Reference< io::XInputStream > 
ZipPackage::writeTempFile()
         aZipOut.finish();
 
         if( bUseTemp )
-            xResult = xTempIn;
+            xResult = std::move(xTempIn);
 
         // Update our References to point to the new temp file
         if( !bUseTemp )
diff --git a/pyuno/source/module/pyuno.cxx b/pyuno/source/module/pyuno.cxx
index 56836aed7498..0266afb200a7 100644
--- a/pyuno/source/module/pyuno.cxx
+++ b/pyuno/source/module/pyuno.cxx
@@ -1725,7 +1725,7 @@ PyRef PyUNO_new (
     if (self == nullptr)
         return PyRef(); // == error
     self->members = new PyUNOInternals;
-    self->members->xInvocation = xInvocation;
+    self->members->xInvocation = std::move(xInvocation);
     self->members->wrappedObject = targetInterface;
     return PyRef( reinterpret_cast<PyObject*>(self), SAL_NO_ACQUIRE );
 
diff --git a/reportdesign/source/core/api/ReportControlModel.cxx 
b/reportdesign/source/core/api/ReportControlModel.cxx
index 16dee9bd17bc..097e6dbfb322 100644
--- a/reportdesign/source/core/api/ReportControlModel.cxx
+++ b/reportdesign/source/core/api/ReportControlModel.cxx
@@ -93,7 +93,7 @@ void OReportControlModel::replaceByIndex(::sal_Int32 Index, 
const uno::Any& Elem
         ::osl::MutexGuard aGuard(m_rMutex);
         xBroadcaster = m_pOwner;
         checkIndex(Index);
-        m_aFormatConditions[Index] = xElement;
+        m_aFormatConditions[Index] = std::move(xElement);
     }
     container::ContainerEvent aEvent(xBroadcaster, uno::Any(Index), Element, 
uno::Any());
     
aContainerListeners.notifyEach(&container::XContainerListener::elementReplaced, 
aEvent);
diff --git a/reportdesign/source/ui/report/ReportController.cxx 
b/reportdesign/source/ui/report/ReportController.cxx
index a60b65e64ef1..bc572efa2224 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -2954,7 +2954,7 @@ uno::Reference< sdbc::XRowSet > const & 
OReportController::getRowSet()
         aPropertyMediation.emplace( PROPERTY_FILTER, 
TPropertyConverter(PROPERTY_FILTER,aNoConverter) );
 
         m_xRowSetMediator = new OPropertyMediator( m_xReportDefinition, 
xRowSetProp, std::move(aPropertyMediation) );
-        m_xRowSet = xRowSet;
+        m_xRowSet = std::move(xRowSet);
     }
     catch(const uno::Exception&)
     {
@@ -3393,7 +3393,7 @@ void OReportController::addPairControls(const Sequence< 
PropertyValue >& aArgs)
                         OSL_VERIFY( xParamCol->getPropertyValue(u"Name"_ustr) 
>>= sParamName );
                         if ( sParamName == sColumnName )
                         {
-                            xField = xParamCol;
+                            xField = std::move(xParamCol);
                             break;
                         }
                     }
diff --git a/sc/source/filter/excel/xechart.cxx 
b/sc/source/filter/excel/xechart.cxx
index 47de22558cd9..8f5334cfdc0a 100644
--- a/sc/source/filter/excel/xechart.cxx
+++ b/sc/source/filter/excel/xechart.cxx
@@ -1969,7 +1969,7 @@ bool XclExpChSeries::ConvertStockSeries( 
css::uno::Reference< css::chart2::XData
             OUString aRole;
             if( aValueProp.GetProperty( aRole, EXC_CHPROP_ROLE ) && (aRole == 
rValueRole) )
             {
-                xYValueSeq = xTmpValueSeq;
+                xYValueSeq = std::move(xTmpValueSeq);
                 xTitleSeq = rLabeledSeq->getLabel();     // ignore role of 
label sequence
                 break;
             }
diff --git a/sc/source/filter/excel/xiescher.cxx 
b/sc/source/filter/excel/xiescher.cxx
index a2c54e55df79..513febf2b257 100644
--- a/sc/source/filter/excel/xiescher.cxx
+++ b/sc/source/filter/excel/xiescher.cxx
@@ -3768,7 +3768,7 @@ bool XclImpDffConverter::InsertControl( const Reference< 
XFormComponent >& rxFor
 
         // set control model at control shape and pass back shape to caller
         xCtrlShape->setControl( xCtrlModel );
-        if( pxShape ) *pxShape = xShape;
+        if( pxShape ) *pxShape = std::move(xShape);
         return true;
     }
     catch( const Exception& )
diff --git a/sc/source/filter/xml/xmlexprt.cxx 
b/sc/source/filter/xml/xmlexprt.cxx
index 6d9ea0460f37..21ba6a6aed0c 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -551,7 +551,7 @@ void ScXMLExport::CollectSharedData(SCTAB& nTableCount, 
sal_Int32& nShapesCount)
                 aMyShape.aEndAddress.SetTab( nTable );
                 aMyShape.nEndX = pAnchor->maEndOffset.X();
                 aMyShape.nEndY = pAnchor->maEndOffset.Y();
-                aMyShape.xShape = xShape;
+                aMyShape.xShape = std::move(xShape);
                 pSharedData->AddNewShape(aMyShape);
                 pSharedData->SetLastColumn(nTable, pAnchor->maStart.Col());
                 pSharedData->SetLastRow(nTable, pAnchor->maStart.Row());
diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx
index 31cf4dd6296f..ab0bf810ee0b 100644
--- a/sc/source/ui/unoobj/viewuno.cxx
+++ b/sc/source/ui/unoobj/viewuno.cxx
@@ -1304,7 +1304,7 @@ bool ScTabViewObj::MouseReleased( const awt::MouseEvent& 
e )
             aMouseEvent.Y = e.Y;
             aMouseEvent.ClickCount = e.ClickCount;
             aMouseEvent.PopupTrigger = e.PopupTrigger;
-            aMouseEvent.Target = xTarget;
+            aMouseEvent.Target = std::move(xTarget);
             aMouseEvent.Modifiers = e.Modifiers;
 
             // Listener's handler may remove it from the listeners list
diff --git a/sc/source/ui/vba/excelvbahelper.cxx 
b/sc/source/ui/vba/excelvbahelper.cxx
index 0f00dae66ed7..0687f9c302ca 100644
--- a/sc/source/ui/vba/excelvbahelper.cxx
+++ b/sc/source/ui/vba/excelvbahelper.cxx
@@ -83,7 +83,7 @@ GetAutoFiltRange( const ScDocShell* pShell, sal_Int16 nSheet )
         xProps->getPropertyValue(u"AutoFilter"_ustr) >>= bHasAuto;
         if ( bHasAuto )
         {
-            xDataBaseRange=xDBRange;
+            xDataBaseRange = std::move(xDBRange);
         }
     }
     return xDataBaseRange;
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index d93bc994f099..af9858e5dba4 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -4198,7 +4198,7 @@ static uno::Reference< sheet::XCellRangeReferrer > 
getNamedRange( const uno::Ref
         {
             if ( thisRange == xName->getReferredCells() )
             {
-                xNamedRange = xName;
+                xNamedRange = std::move(xName);
                 break;
             }
         }
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx 
b/sd/source/ui/animations/CustomAnimationPane.cxx
index b8bf3858e6f1..b0075ad75a71 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -1631,7 +1631,7 @@ void CustomAnimationPane::onChangeCurrentPage()
         Reference< XDrawPage > xNewPage( mxView->getCurrentPage() );
         if( xNewPage != mxCurrentPage )
         {
-            mxCurrentPage = xNewPage;
+            mxCurrentPage = std::move(xNewPage);
             SdPage* pPage = SdPage::getImplementation( mxCurrentPage );
             if( pPage )
             {
diff --git a/sd/source/ui/table/TableDesignPane.cxx 
b/sd/source/ui/table/TableDesignPane.cxx
index 214bdeb1410e..3ed644ce75f3 100644
--- a/sd/source/ui/table/TableDesignPane.cxx
+++ b/sd/source/ui/table/TableDesignPane.cxx
@@ -579,7 +579,7 @@ void TableDesignWidget::onSelectionChanged()
 
     if( mxSelectedTable != xNewSelection )
     {
-        mxSelectedTable = xNewSelection;
+        mxSelectedTable = std::move(xNewSelection);
         updateControls();
     }
 }
diff --git a/sfx2/source/bastyp/progress.cxx b/sfx2/source/bastyp/progress.cxx
index f0dacde85834..4f5ef41b3874 100644
--- a/sfx2/source/bastyp/progress.cxx
+++ b/sfx2/source/bastyp/progress.cxx
@@ -214,7 +214,7 @@ void SfxProgress::SetState
                     const SfxUnoAnyItem* pIndicatorItem = 
pMedium->GetItemSet().GetItem(SID_PROGRESS_STATUSBAR_CONTROL, false);
                     Reference< XStatusIndicator > xInd;
                     if ( pIndicatorItem && (pIndicatorItem->GetValue()>>=xInd) 
)
-                        pImpl->xStatusInd = xInd;
+                        pImpl->xStatusInd = std::move(xInd);
                 }
             }
         }
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index af44df8cd92a..ab1900d39da2 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -2935,7 +2935,7 @@ void SfxMedium::GetLockingStream_Impl()
             pImpl->xStream = pImpl->m_xLockingStream;
 
         if ( xInputStream.is() )
-            pImpl->xInputStream = xInputStream;
+            pImpl->xInputStream = std::move(xInputStream);
 
         if ( !pImpl->xInputStream.is() && pImpl->xStream.is() )
             pImpl->xInputStream = pImpl->xStream->getInputStream();
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx
index 435657928d71..6ec82f732749 100644
--- a/sfx2/source/doc/guisaveas.cxx
+++ b/sfx2/source/doc/guisaveas.cxx
@@ -617,8 +617,8 @@ bool ModelData_Impl::ExecuteFilterDialog_Impl( const 
OUString& aFilterName, bool
 
                         if ( bIsAsync )
                         {
-                            m_xFilterProperties = xFilterProperties;
-                            m_xFilterDialog = xAsyncFilterDialog;
+                            m_xFilterProperties = std::move(xFilterProperties);
+                            m_xFilterDialog = std::move(xAsyncFilterDialog);
 
                             auto aDialogClosedListener = rtl::Reference(new 
svt::DialogClosedListener());
                             aDialogClosedListener->SetDialogClosedLink( LINK( 
this, ModelData_Impl, OptionsDialogClosedHdl ) );
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index b26931ca08af..0e2001428ff3 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -3754,7 +3754,7 @@ Reference< ui::XUIConfigurationManager2 > 
SfxBaseModel::getUIConfigurationManage
             }
         }
 
-        m_pData->m_xUIConfigurationManager = xNewUIConfMan;
+        m_pData->m_xUIConfigurationManager = std::move(xNewUIConfMan);
     }
 
     return m_pData->m_xUIConfigurationManager;
diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx
index b106f7f98fcf..d424067ed37f 100644
--- a/sfx2/source/inet/inettbc.cxx
+++ b/sfx2/source/inet/inettbc.cxx
@@ -145,7 +145,7 @@ void SfxURLToolBoxControl_Impl::OpenURL( const OUString& 
rName ) const
         return;
 
     SfxURLToolBoxControl_Impl::ExecuteInfo* pExecuteInfo = new 
SfxURLToolBoxControl_Impl::ExecuteInfo;
-    pExecuteInfo->xDispatch     = xDispatch;
+    pExecuteInfo->xDispatch     = std::move(xDispatch);
     pExecuteInfo->aTargetURL    = std::move(aTargetURL);
     pExecuteInfo->aArgs         = {
         comphelper::makePropertyValue(u"Referer"_ustr, u"private:user"_ustr),
diff --git a/sfx2/source/view/lokcharthelper.cxx 
b/sfx2/source/view/lokcharthelper.cxx
index f6dd091ebd87..0ae4d9ae8bf2 100644
--- a/sfx2/source/view/lokcharthelper.cxx
+++ b/sfx2/source/view/lokcharthelper.cxx
@@ -42,7 +42,7 @@ css::uno::Reference<css::frame::XController>& 
LokChartHelper::GetXController()
                     ::css::uno::Reference< ::css::frame::XController > 
xChartController = xChart->getCurrentController();
                     if( xChartController.is() )
                     {
-                        mxController = xChartController;
+                        mxController = std::move(xChartController);
                     }
                 }
             }
diff --git a/svtools/source/filter/exportdialog.cxx 
b/svtools/source/filter/exportdialog.cxx
index 55a7dd563917..8ba93ae04768 100644
--- a/svtools/source/filter/exportdialog.cxx
+++ b/svtools/source/filter/exportdialog.cxx
@@ -402,7 +402,7 @@ void ExportDialog::GetGraphicSource()
             uno::Reference< drawing::XDrawPage > xCurrentPage( 
xDrawView->getCurrentPage() );
             if ( xCurrentPage.is() )
             {
-                mxPage = xCurrentPage;      // exporting whole page
+                mxPage = std::move(xCurrentPage);      // exporting whole page
             }
         }
     }
diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx
index 4ed389f68ac7..8861c69fcdc9 100644
--- a/svx/source/fmcomp/fmgridcl.cxx
+++ b/svx/source/fmcomp/fmgridcl.cxx
@@ -538,9 +538,9 @@ IMPL_LINK_NOARG( FmGridHeader, OnAsyncExecuteDrop, void*, 
void )
                 if ( !sFieldService.isEmpty() )
                     xThisRoundCol = xFactory->createColumn(sFieldService);
                 if (nColCount)
-                    xSecondCol = xThisRoundCol;
+                    xSecondCol = std::move(xThisRoundCol);
                 else
-                    xCol = xThisRoundCol;
+                    xCol = std::move(xThisRoundCol);
             }
         }
 
diff --git a/svx/source/form/fmundo.cxx b/svx/source/form/fmundo.cxx
index 3f5f28884724..08a9692837e4 100644
--- a/svx/source/form/fmundo.cxx
+++ b/svx/source/form/fmundo.cxx
@@ -1236,7 +1236,7 @@ void FmUndoModelReplaceAction::Undo()
             m_pObject->SetUnoControlModel(m_xReplaced);
             m_pObject->SetChanged();
 
-            m_xReplaced = xCurrentModel;
+            m_xReplaced = std::move(xCurrentModel);
         }
     }
     catch(Exception&)
diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx
index fed5613c7d81..5e9ad0db0812 100644
--- a/svx/source/form/fmvwimp.cxx
+++ b/svx/source/form/fmvwimp.cxx
@@ -714,7 +714,7 @@ IMPL_LINK_NOARG(FmXFormView, OnActivate, void*, void)
             Reference< XFormController > xActiveController(fad(xController));
             if (xActiveController.is())
             {
-                xControllerToActivate = xActiveController;
+                xControllerToActivate = std::move(xActiveController);
                 break;
             }
         }
diff --git a/svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx 
b/svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx
index 7b3c3a705a5c..516103aaccfd 100644
--- a/svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx
+++ b/svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx
@@ -225,7 +225,7 @@ namespace drawinglayer::primitive2d
                     aNewTextBackgroundColor = 
rDrawOutliner.GetBackgroundColor();
                 }
 
-                const_cast< SdrTextPrimitive2D* >(this)->mxLastVisualizingPage 
= xCurrentlyVisualizingPage;
+                const_cast< SdrTextPrimitive2D* >(this)->mxLastVisualizingPage 
= std::move(xCurrentlyVisualizingPage);
                 const_cast< SdrTextPrimitive2D* >(this)->mnLastPageNumber = 
nCurrentlyValidPageNumber;
                 const_cast< SdrTextPrimitive2D* >(this)->mnLastPageCount = 
nCurrentlyValidPageCount;
                 const_cast< SdrTextPrimitive2D* 
>(this)->maLastTextBackgroundColor = aNewTextBackgroundColor;
diff --git a/svx/source/table/tabledesign.cxx b/svx/source/table/tabledesign.cxx
index 0cb561b355e1..e110827e6995 100644
--- a/svx/source/table/tabledesign.cxx
+++ b/svx/source/table/tabledesign.cxx
@@ -417,7 +417,7 @@ void SAL_CALL TableDesignStyle::replaceByName( const 
OUString& rName, const Any&
     if (xNewStyle && xNewStyle->isUserDefined())
         mbModified = true;
 
-    maCellStyles[nIndex] = xNewStyle;
+    maCellStyles[nIndex] = std::move(xNewStyle);
 }
 
 
diff --git a/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx 
b/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx
index 2c495ed140b0..552a5babb438 100644
--- a/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx
+++ b/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx
@@ -9390,11 +9390,11 @@ void DomainMapper_Impl::AddAnnotationPosition(
     AnnotationPosition& aAnnotationPosition = m_aAnnotationPositions[ 
nAnnotationId ];
     if (bStart)
     {
-        aAnnotationPosition.m_xStart = xCurrent;
+        aAnnotationPosition.m_xStart = std::move(xCurrent);
     }
     else
     {
-        aAnnotationPosition.m_xEnd = xCurrent;
+        aAnnotationPosition.m_xEnd = std::move(xCurrent);
     }
     m_aAnnotationPositions[ nAnnotationId ] = aAnnotationPosition;
 }
diff --git a/toolkit/source/awt/vclxaccessiblecomponent.cxx 
b/toolkit/source/awt/vclxaccessiblecomponent.cxx
index da5e165ab831..65b6f665d7cd 100644
--- a/toolkit/source/awt/vclxaccessiblecomponent.cxx
+++ b/toolkit/source/awt/vclxaccessiblecomponent.cxx
@@ -701,7 +701,7 @@ uno::Reference< accessibility::XAccessible > 
VCLXAccessibleComponent::getAccessi
                 Point aPos = VCLUnoHelper::ConvertToVCLPoint(rPoint);
                 if ( aRect.Contains( aPos ) )
                 {
-                    xChild = xAcc;
+                    xChild = std::move(xAcc);
                     break;
                 }
             }
diff --git a/toolkit/source/controls/accessiblecontrolcontext.cxx 
b/toolkit/source/controls/accessiblecontrolcontext.cxx
index db5f9c03b183..6739377238ed 100644
--- a/toolkit/source/controls/accessiblecontrolcontext.cxx
+++ b/toolkit/source/controls/accessiblecontrolcontext.cxx
@@ -221,7 +221,7 @@ namespace toolkit
         vcl::Window* pWindow = xWindow.is() ? VCLUnoHelper::GetWindow( xWindow 
) : nullptr;
 
         if ( _pxUNOWindow )
-            *_pxUNOWindow = xWindow;
+            *_pxUNOWindow = std::move(xWindow);
 
         return pWindow;
     }
diff --git a/ucb/source/ucp/hierarchy/hierarchydata.cxx 
b/ucb/source/ucp/hierarchy/hierarchydata.cxx
index cba3330718e1..114fbc742cef 100644
--- a/ucb/source/ucp/hierarchy/hierarchydata.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchydata.cxx
@@ -646,7 +646,7 @@ bool HierarchyEntry::move(
         if ( bDifferentParents )
             xNewParentNameAccess.set( xNewParentBatch, uno::UNO_QUERY );
         else
-            xNewParentNameAccess = xOldParentNameAccess;
+            xNewParentNameAccess = std::move(xOldParentNameAccess);
 
         OSL_ENSURE( xNewParentNameAccess.is(),
                     "HierarchyEntry::move - No name access!" );
@@ -667,7 +667,7 @@ bool HierarchyEntry::move(
             }
         }
         else
-            xNewNameContainer = xOldNameContainer;
+            xNewNameContainer = std::move(xOldNameContainer);
 
         if ( !xNewNameContainer.is() )
             return false;
diff --git a/ucbhelper/source/provider/registerucb.cxx 
b/ucbhelper/source/provider/registerucb.cxx
index baf0e5b3f6bb..77b931f2c548 100644
--- a/ucbhelper/source/provider/registerucb.cxx
+++ b/ucbhelper/source/provider/registerucb.cxx
@@ -97,7 +97,7 @@ registerAtUcb(
         catch (lang::IllegalArgumentException const &) {}
 
         if (xInstance.is())
-            xProvider = xInstance;
+            xProvider = std::move(xInstance);
     }
 
     bool bSuccess = false;
diff --git a/unotools/source/config/lingucfg.cxx 
b/unotools/source/config/lingucfg.cxx
index f48b61240543..f96928d4d7b8 100644
--- a/unotools/source/config/lingucfg.cxx
+++ b/unotools/source/config/lingucfg.cxx
@@ -1152,7 +1152,7 @@ OUString SvtLinguConfig::GetVendorImageUrl_Impl(
         OUString aVendorImagesNode;
         if (aAny >>= aVendorImagesNode)
         {
-            xNA = xImagesNA;
+            xNA = std::move(xImagesNA);
             xNA.set( xNA->getByName(u"VendorImages"_ustr), 
uno::UNO_QUERY_THROW );
             xNA.set( xNA->getByName( aVendorImagesNode ), uno::UNO_QUERY_THROW 
);
             aAny = xNA->getByName( rImageName );
diff --git a/vcl/source/gdi/formpdfexport.cxx b/vcl/source/gdi/formpdfexport.cxx
index 1d0151c98d4c..7a2f253e5dc1 100644
--- a/vcl/source/gdi/formpdfexport.cxx
+++ b/vcl/source/gdi/formpdfexport.cxx
@@ -217,7 +217,7 @@ namespace toolkitform
                     {
                         // step down the hierarchy
                         aAncestors.push_back( xCurrentContainer );
-                        xCurrentContainer = xNewContainer;
+                        xCurrentContainer = std::move(xNewContainer);
                         aPath.push_back( i );
                         nStartWithChild = 0;
                         break;
diff --git a/xmloff/source/chart/SchXMLImport.cxx 
b/xmloff/source/chart/SchXMLImport.cxx
index 844fb7363b43..fb9682dd9411 100644
--- a/xmloff/source/chart/SchXMLImport.cxx
+++ b/xmloff/source/chart/SchXMLImport.cxx
@@ -93,7 +93,7 @@ SvXMLImportContext* SchXMLImportHelper::CreateChartContext(
     Reference< chart::XChartDocument > xDoc( rChartModel, uno::UNO_QUERY );
     if( xDoc.is())
     {
-        mxChartDoc = xDoc;
+        mxChartDoc = std::move(xDoc);
         pContext = new SchXMLChartContext( *this, rImport );
     }
     else
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index eaa9ac06d809..6d9fa2a64c1a 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -976,11 +976,11 @@ void SAL_CALL SvXMLImport::initialize( const 
uno::Sequence< uno::Any >& aArgumen
         uno::Reference<task::XStatusIndicator> xTmpStatusIndicator(
             xValue, UNO_QUERY );
         if( xTmpStatusIndicator.is() )
-            mxStatusIndicator = xTmpStatusIndicator;
+            mxStatusIndicator = std::move(xTmpStatusIndicator);
 
         uno::Reference<document::XGraphicStorageHandler> 
xGraphicStorageHandler(xValue, UNO_QUERY);
         if (xGraphicStorageHandler.is())
-            mxGraphicStorageHandler = xGraphicStorageHandler;
+            mxGraphicStorageHandler = std::move(xGraphicStorageHandler);
 
         uno::Reference<document::XEmbeddedObjectResolver> xTmpObjectResolver(
             xValue, UNO_QUERY );
diff --git a/xmloff/source/text/XMLTextMarkImportContext.cxx 
b/xmloff/source/text/XMLTextMarkImportContext.cxx
index 69c349e659be..2803fd0b5f30 100644
--- a/xmloff/source/text/XMLTextMarkImportContext.cxx
+++ b/xmloff/source/text/XMLTextMarkImportContext.cxx
@@ -416,7 +416,7 @@ void XMLTextMarkImportContext::endFastElement(sal_Int32 
nElement)
                     if (m_sBookmarkName.startsWith("__RefHeading__"))
                     {
                         assert(xContent.is());
-                        m_rxCrossRefHeadingBookmark = xContent;
+                        m_rxCrossRefHeadingBookmark = std::move(xContent);
                     }
                 }
                 // else: beginning/end in different XText -> ignore!
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx
index 7dfb223fd25d..33fa6ab0ae0f 100644
--- a/xmloff/source/text/txtimp.cxx
+++ b/xmloff/source/text/txtimp.cxx
@@ -993,7 +993,7 @@ static bool lcl_HasListStyle( const OUString& sStyleName,
                         // error case
                         return true;
                     }
-                    xStyle = xParentStyle;
+                    xStyle = std::move(xParentStyle);
                 }
             }
         }
diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx
index b22939eb1a39..820e12b532da 100644
--- a/xmloff/source/text/txtparai.cxx
+++ b/xmloff/source/text/txtparai.cxx
@@ -1075,7 +1075,7 @@ bool XMLIndexMarkImportContext_Impl::CreateMark(
     {
         Reference<beans::XPropertySet> xPropSet( 
xFactory->createInstance(rServiceName), UNO_QUERY );
         if (xPropSet.is())
-            rPropSet = xPropSet;
+            rPropSet = std::move(xPropSet);
         return true;
     }
 

Reply via email to