diff --git a/binaryurp/source/incomingrequest.cxx b/binaryurp/source/incomingrequest.cxx index 6f4107693b73..dcb73af21809 100644 --- a/binaryurp/source/incomingrequest.cxx +++ b/binaryurp/source/incomingrequest.cxx @@ -189,7 +189,7 @@ bool IncomingRequest::execute_throw( args.push_back(inArguments_[0].getValue(t)); } else { assert(inArguments_.empty()); - retType = t; + retType = std::move(t); } break; } diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index 3851a01e596e..59ab182ca2b3 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -469,7 +469,7 @@ void SpellDialog::StartSpellOptDlg_Impl() std::unique_ptr xPage = SvxLinguTabPage::Create(m_xOptionsDlg->get_content_area(), m_xOptionsDlg.get(), xSet.get()); static_cast(xPage.get())->HideGroups( GROUP_MODULES ); m_xOptionsDlg->SetTabPage(std::move(xPage)); - weld::GenericDialogController::runAsync(m_xOptionsDlg, [this, xSet] (sal_uInt32 nResult) { + weld::GenericDialogController::runAsync(m_xOptionsDlg, [this, xSet=std::move(xSet)] (sal_uInt32 nResult) { if (RET_OK == nResult) { InitUserDicts(); diff --git a/dbaccess/source/ui/relationdesign/RelationTableView.cxx b/dbaccess/source/ui/relationdesign/RelationTableView.cxx index da82719b7a23..c2c07ceb710c 100644 --- a/dbaccess/source/ui/relationdesign/RelationTableView.cxx +++ b/dbaccess/source/ui/relationdesign/RelationTableView.cxx @@ -192,7 +192,7 @@ void ORelationTableView::AddConnection(const OJoinExchangeData& jxdSource, const pTabConnData->SetConnLine( 0, sSourceFieldName, sDestFieldName ); if ( bAskUser || m_pExistingConnection ) - m_pCurrentlyTabConnData = pTabConnData; // this implies that we ask the user what to do + m_pCurrentlyTabConnData = std::move(pTabConnData); // this implies that we ask the user what to do else { try diff --git a/drawinglayer/source/tools/emfphelperdata.cxx b/drawinglayer/source/tools/emfphelperdata.cxx index b9162a7a3ed7..d75219986bfa 100644 --- a/drawinglayer/source/tools/emfphelperdata.cxx +++ b/drawinglayer/source/tools/emfphelperdata.cxx @@ -1724,7 +1724,7 @@ namespace emfplushelper std::move(emptyVector), // EMF-PLUS has no DX-array {}, std::move(fontAttribute), - locale, + std::move(locale), color.getBColor()); } drawinglayer::primitive2d::Primitive2DReference aPrimitiveText(pBaseText); diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx index 0c4376727aac..77038e96d500 100644 --- a/fpicker/source/office/iodlg.cxx +++ b/fpicker/source/office/iodlg.cxx @@ -1600,7 +1600,7 @@ bool SvtFileDialog::PrepareExecute() aFolderURL.removeSegment(); } - INetURLObject aObj = aFolderURL; + INetURLObject aObj = std::move(aFolderURL); if ( aObj.GetProtocol() == INetProtocol::File ) { // set folder as current directory diff --git a/helpcompiler/source/HelpCompiler.cxx b/helpcompiler/source/HelpCompiler.cxx index b9243265033c..57f3f5bca179 100644 --- a/helpcompiler/source/HelpCompiler.cxx +++ b/helpcompiler/source/HelpCompiler.cxx @@ -384,7 +384,7 @@ void myparser::traverse( xmlNodePtr parentNode ) ll.push_back(keyword); } if (!ll.empty()) - (*keywords)[anchor] = ll; + (*keywords)[anchor] = std::move(ll); } else if (branch.compare("contents") == 0) { @@ -410,7 +410,7 @@ void myparser::traverse( xmlNodePtr parentNode ) if (hidstr != "." && !hidstr.empty()) //simple case of explicitly named target { assert(!hidstr.empty()); - (*helptexts)[hidstr] = text; + (*helptexts)[hidstr] = std::move(text); } else //apply to list of "current" hids determined by recent bookmarks that have hid in their branch { diff --git a/i18npool/source/breakiterator/breakiterator_unicode.cxx b/i18npool/source/breakiterator/breakiterator_unicode.cxx index 6406158f558f..5992b6144b0b 100644 --- a/i18npool/source/breakiterator/breakiterator_unicode.cxx +++ b/i18npool/source/breakiterator/breakiterator_unicode.cxx @@ -286,7 +286,7 @@ void BreakIterator_Unicode::loadICUBreakIterator(const css::lang::Locale& rLocal throw uno::RuntimeException("Failed to create ICU BreakIterator: error " + OUString::createFromAscii(u_errorName(status))); } icuBI->mpValue = std::make_shared(); - icuBI->mpValue->mpBreakIterator = pBI; + icuBI->mpValue->mpBreakIterator = std::move(pBI); theBIMap.insert( std::make_pair( aBIMapLocaleTypeKey, icuBI->mpValue)); } while (false); if (!icuBI->mpValue || !icuBI->mpValue->mpBreakIterator) { diff --git a/lingucomponent/source/languageguessing/guesslang.cxx b/lingucomponent/source/languageguessing/guesslang.cxx index db179c9bfdc9..d87542b889fb 100644 --- a/lingucomponent/source/languageguessing/guesslang.cxx +++ b/lingucomponent/source/languageguessing/guesslang.cxx @@ -202,7 +202,7 @@ uno::Sequence< Locale > SAL_CALL LangGuess_Impl::getAvailableLanguages( ) css::lang::Locale current_aRes; current_aRes.Language = OUString::createFromAscii( gs[i].GetLanguage() ); current_aRes.Country = OUString::createFromAscii( gs[i].GetCountry() ); - pRes[i] = current_aRes; + pRes[i] = std::move(current_aRes); } return aRes; diff --git a/oox/source/drawingml/customshapeproperties.cxx b/oox/source/drawingml/customshapeproperties.cxx index ff71d59912aa..447f5262b13f 100644 --- a/oox/source/drawingml/customshapeproperties.cxx +++ b/oox/source/drawingml/customshapeproperties.cxx @@ -196,7 +196,7 @@ void CustomShapeProperties::pushToPropSet( aAdjustmentVal.Value <<= adjustmentGuide.maFormula.toInt32(); aAdjustmentVal.State = PropertyState_DIRECT_VALUE; aAdjustmentVal.Name = adjustmentGuide.maName; - aAdjustmentSeqRange[ nAdjustmentIndex ] = aAdjustmentVal; + aAdjustmentSeqRange[ nAdjustmentIndex ] = std::move(aAdjustmentVal); } } else if ( aAdjustmentSeq.hasElements() ) { EnhancedCustomShapeAdjustmentValue aAdjustmentVal; @@ -205,7 +205,7 @@ void CustomShapeProperties::pushToPropSet( aAdjustmentVal.Name = adjustmentGuide.maName; if (nIndex < aAdjustmentSeq.getLength()) { - aAdjustmentSeqRange[nIndex] = aAdjustmentVal; + aAdjustmentSeqRange[nIndex] = std::move(aAdjustmentVal); ++nIndex; } } diff --git a/oox/source/drawingml/diagram/layoutatomvisitors.cxx b/oox/source/drawingml/diagram/layoutatomvisitors.cxx index 96cbd738ea66..482894ee159e 100644 --- a/oox/source/drawingml/diagram/layoutatomvisitors.cxx +++ b/oox/source/drawingml/diagram/layoutatomvisitors.cxx @@ -83,7 +83,7 @@ void ShapeCreationVisitor::visit(LayoutNode& rAtom) { pShape->setInternalName(rAtom.getName()); rAtom.addNodeShape(pShape); - mrDgm.getLayout()->getPresPointShapeMap()[pNewNode] = pShape; + mrDgm.getLayout()->getPresPointShapeMap()[pNewNode] = std::move(pShape); } } else diff --git a/oox/source/drawingml/textcharacterpropertiescontext.cxx b/oox/source/drawingml/textcharacterpropertiescontext.cxx index 923e14f2e794..9bee9c88106a 100644 --- a/oox/source/drawingml/textcharacterpropertiescontext.cxx +++ b/oox/source/drawingml/textcharacterpropertiescontext.cxx @@ -236,7 +236,7 @@ ContextHandlerRef TextCharacterPropertiesContext::onCreateContext( sal_Int32 aEl { oox::drawingml::Color theColor; theColor.setSrgbClr(colorAttrib.value()); - mrTextCharacterProperties.maUnderlineColor = theColor; + mrTextCharacterProperties.maUnderlineColor = std::move(theColor); } break; } diff --git a/package/source/xstor/owriteablestream.cxx b/package/source/xstor/owriteablestream.cxx index 437750525ae7..16e04ac6ce76 100644 --- a/package/source/xstor/owriteablestream.cxx +++ b/package/source/xstor/owriteablestream.cxx @@ -896,7 +896,7 @@ uno::Sequence< beans::PropertyValue > OWriteStream_Impl::InsertOwnProps( break; if (i == aResult.getLength()) aResult.realloc(i + 1); - aResult.getArray()[i] = aPropVal; + aResult.getArray()[i] = std::move(aPropVal); } return aResult; diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx index 81a796886110..1a88b55c961c 100644 --- a/sc/source/core/opencl/formulagroupcl.cxx +++ b/sc/source/core/opencl/formulagroupcl.cxx @@ -2684,7 +2684,7 @@ void DynamicKernel::CreateKernel() } lastSecondKernelHash = lastOneKernelHash; lastSecondProgram = lastOneProgram; - lastOneKernelHash = KernelHash; + lastOneKernelHash = std::move(KernelHash); lastOneProgram = mpProgram; } mpKernel = clCreateKernel(mpProgram, kname.c_str(), &err); diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index ad5685c84b89..5bc3166dca59 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -7217,14 +7217,14 @@ void ScInterpreter::ScLookup() { ScMatrixRef pTempMat = GetNewMat( 1, nElems, /*bEmpty*/true ); pTempMat->PutDoubleVector( vArray, 0, 0); - pDataMat2 = pTempMat; + pDataMat2 = std::move(pTempMat); } else { ScMatrixRef pTempMat = GetNewMat( nElems, 1, /*bEmpty*/true ); for (size_t i=0; i < nElems; ++i) pTempMat->PutDouble( vArray[i], i, 0); - pDataMat2 = pTempMat; + pDataMat2 = std::move(pTempMat); } } } diff --git a/sc/source/core/tool/interpr5.cxx b/sc/source/core/tool/interpr5.cxx index af04d06897db..f282d5fe7169 100644 --- a/sc/source/core/tool/interpr5.cxx +++ b/sc/source/core/tool/interpr5.cxx @@ -1355,11 +1355,11 @@ void ScInterpreter::CalculateAddSub(bool _bSub) { double fVal; bool bFlag; - ScMatrixRef pMat = pMat1; + ScMatrixRef pMat = std::move(pMat1); if (!pMat) { fVal = fVal1; - pMat = pMat2; + pMat = std::move(pMat2); bFlag = true; // double - Matrix } else diff --git a/sc/source/filter/xml/xmldrani.cxx b/sc/source/filter/xml/xmldrani.cxx index 5708c74d2fa3..cf6cd7d3e651 100644 --- a/sc/source/filter/xml/xmldrani.cxx +++ b/sc/source/filter/xml/xmldrani.cxx @@ -303,7 +303,7 @@ std::unique_ptr ScXMLDatabaseRangeContext::ConvertToDBData(const OUStr table::TableOrientation eOrient = mpQueryParam->bByRow ? table::TableOrientation_ROWS : table::TableOrientation_COLUMNS; aProperty.Value <<= eOrient; - aSortSequence.getArray()[nOldSize] = aProperty; + aSortSequence.getArray()[nOldSize] = std::move(aProperty); ScSortParam aParam; ScSortDescriptor::FillSortParam(aParam, aSortSequence); diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 94ca9b708dc7..c8ae78fa7380 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -1564,7 +1564,7 @@ void SlideshowImpl::registerShapeEvents( Reference< XShapes > const & xShapes ) continue; // skip all others } - maShapeEventMap[ xShape ] = pEvent; + maShapeEventMap[ xShape ] = std::move(pEvent); if( mxListenerProxy.is() ) mxListenerProxy->addShapeEventListener( xShape ); diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index 3b8c62994b76..502df8396306 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -1950,7 +1950,7 @@ private: } else { - rInfo.maMap = aMap; + rInfo.maMap = std::move(aMap); PrepareScaledPage(*it, *pPage, ePageKind, rInfo); } } diff --git a/sfx2/source/control/recentdocsviewitem.cxx b/sfx2/source/control/recentdocsviewitem.cxx index b1fcdccb69dd..d5ae52e297d8 100644 --- a/sfx2/source/control/recentdocsviewitem.cxx +++ b/sfx2/source/control/recentdocsviewitem.cxx @@ -386,7 +386,7 @@ void RecentDocsViewItem::OpenDocument() // after select!!! sfx2::LoadRecentFile *const pLoadRecentFile = new sfx2::LoadRecentFile; pLoadRecentFile->xDispatch = xDispatch; - pLoadRecentFile->aTargetURL = aTargetURL; + pLoadRecentFile->aTargetURL = std::move(aTargetURL); pLoadRecentFile->aArgSeq = aArgsList; pLoadRecentFile->pView = &mrParentView; diff --git a/sfx2/source/doc/oleprops.cxx b/sfx2/source/doc/oleprops.cxx index 714f58c2f1af..8ba709111fce 100644 --- a/sfx2/source/doc/oleprops.cxx +++ b/sfx2/source/doc/oleprops.cxx @@ -1065,7 +1065,7 @@ void SfxOleSection::LoadProperty( SvStream& rStrm, sal_Int32 nPropId ) if( xProp ) { SetError( xProp->Load( rStrm ) ); - maPropMap[ nPropId ] = xProp; + maPropMap[ nPropId ] = std::move(xProp); } } diff --git a/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx b/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx index c04aef0a9604..b6d97a9fa39b 100644 --- a/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx +++ b/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx @@ -335,7 +335,7 @@ void SlideBackgroundFillPrimitive2D::get2DDecomposition( if(!getBuffered2DDecomposition()) { // remember last Fill - const_cast< SlideBackgroundFillPrimitive2D* >(this)->maLastFill = aFill; + const_cast< SlideBackgroundFillPrimitive2D* >(this)->maLastFill = std::move(aFill); } // use parent implementation diff --git a/toolkit/source/awt/animatedimagespeer.cxx b/toolkit/source/awt/animatedimagespeer.cxx index 3c5e5ee9c4bf..166d5bc679ee 100644 --- a/toolkit/source/awt/animatedimagespeer.cxx +++ b/toolkit/source/awt/animatedimagespeer.cxx @@ -338,7 +338,7 @@ namespace toolkit OSL_VERIFY( i_event.Element >>= aImageURLs ); ::std::vector< CachedImage > aImages; lcl_init( aImageURLs, aImages ); - maCachedImageSets[ position ] = aImages; + maCachedImageSets[ position ] = std::move(aImages); updateImageList_nothrow(); } diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx index 2c23d67678ad..3a5c434ba303 100644 --- a/tools/source/fsys/urlobj.cxx +++ b/tools/source/fsys/urlobj.cxx @@ -1050,7 +1050,7 @@ bool INetURLObject::setAbsURIRef(std::u16string_view rTheAbsURIRef, OUStringBuffer aSynAuthority(64); if ( !bHasUser ) { - aSynAuthority = aSynUser; + aSynAuthority = std::move(aSynUser); } else { diff --git a/vcl/inc/pdf/ExternalPDFStreams.hxx b/vcl/inc/pdf/ExternalPDFStreams.hxx index b2936f01a898..67d12b556a5d 100644 --- a/vcl/inc/pdf/ExternalPDFStreams.hxx +++ b/vcl/inc/pdf/ExternalPDFStreams.hxx @@ -47,7 +47,7 @@ struct VCL_DLLPUBLIC ExternalPDFStream } else { - mpPDFDocument = pPDFDocument; + mpPDFDocument = std::move(pPDFDocument); } } return mpPDFDocument; diff --git a/vcl/source/bitmap/bitmappaint.cxx b/vcl/source/bitmap/bitmappaint.cxx index 7ad31ed0ed1f..ccfd14b3f760 100644 --- a/vcl/source/bitmap/bitmappaint.cxx +++ b/vcl/source/bitmap/bitmappaint.cxx @@ -369,7 +369,7 @@ bool Bitmap::Rotate(Degree10 nAngle10, const Color& rFillColor) pWriteAcc.reset(); } - aRotatedBmp = aNewBmp; + aRotatedBmp = std::move(aNewBmp); } else { diff --git a/vcl/source/control/notebookbar.cxx b/vcl/source/control/notebookbar.cxx index 4b6da5c4b573..bbba5ebde7b9 100644 --- a/vcl/source/control/notebookbar.cxx +++ b/vcl/source/control/notebookbar.cxx @@ -350,7 +350,7 @@ void NotebookBar::UpdateDefaultSettings() aStyleSet.SetToolTextColor(aTextColor); aAllSettings.SetStyleSettings(aStyleSet); - DefaultSettings = aAllSettings; + DefaultSettings = std::move(aAllSettings); } void NotebookBar::UpdatePersonaSettings() diff --git a/vcl/source/edit/textview.cxx b/vcl/source/edit/textview.cxx index 783bdd3de5da..3a4be751c234 100644 --- a/vcl/source/edit/textview.cxx +++ b/vcl/source/edit/textview.cxx @@ -270,7 +270,7 @@ void TextView::ImpPaint(vcl::RenderContext& rRenderContext, const Point& rStartP if (aFont.IsTransparent()) aColor = COL_TRANSPARENT; aFont.SetFillColor(aColor); - mpImpl->mpTextEngine->maFont = aFont; + mpImpl->mpTextEngine->maFont = std::move(aFont); } } diff --git a/vcl/source/filter/imet/ios2met.cxx b/vcl/source/filter/imet/ios2met.cxx index 1d1bcfa1c8d6..6e43c50f5986 100644 --- a/vcl/source/filter/imet/ios2met.cxx +++ b/vcl/source/filter/imet/ios2met.cxx @@ -1336,7 +1336,7 @@ void OS2METReader::ReadBezier(bool bGivenPos, sal_uInt16 nOrderLen) if( nNumPoints != aBezPoly.GetSize() ) aBezPoly.SetSize( nNumPoints ); - aPolygon = aBezPoly; + aPolygon = std::move(aBezPoly); } aAttr.aCurPos = aPolygon[ nNumPoints - 1 ]; diff --git a/vcl/source/filter/svm/SvmConverter.cxx b/vcl/source/filter/svm/SvmConverter.cxx index d14adcc30640..2b5a65b189ce 100644 --- a/vcl/source/filter/svm/SvmConverter.cxx +++ b/vcl/source/filter/svm/SvmConverter.cxx @@ -474,7 +474,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf ) { rMtf.ReplaceAction( new MetaPolyPolygonAction( - aInputPolyPolygon), + std::move(aInputPolyPolygon)), nLastPolygonAction); } } diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 54deb6230dd1..d46cbf0da80e 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -10456,7 +10456,7 @@ void PDFWriterImpl::setClipRegion( const basegfx::B2DPolyPolygon& rRegion ) basegfx::B2DPolyPolygon aRegion(rRegion); aRegion.transform(aCurrentTransform); - m_aGraphicsStack.front().m_aClipRegion = aRegion; + m_aGraphicsStack.front().m_aClipRegion = std::move(aRegion); m_aGraphicsStack.front().m_bClipRegion = true; m_aGraphicsStack.front().m_nUpdateFlags |= GraphicsStateUpdateFlags::ClipRegion; } diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx index 308d7408c3c7..399f0286b6ca 100644 --- a/vcl/source/gdi/print.cxx +++ b/vcl/source/gdi/print.cxx @@ -1131,7 +1131,7 @@ bool Printer::SetOrientation( Orientation eOrientation ) { ImplUpdateJobSetupPaper( aJobSetup ); mbNewJobSetup = true; - maJobSetup = aJobSetup; + maJobSetup = std::move(aJobSetup); ImplUpdatePageData(); ImplUpdateFontList(); return true; diff --git a/vcl/unx/generic/printer/printerinfomanager.cxx b/vcl/unx/generic/printer/printerinfomanager.cxx index 610bbd2ab0bf..6091bc2e3639 100644 --- a/vcl/unx/generic/printer/printerinfomanager.cxx +++ b/vcl/unx/generic/printer/printerinfomanager.cxx @@ -858,7 +858,7 @@ void SystemQueueInfo::run() rParm.pHandler( aLines, aSysPrintQueues, &rParm ); std::unique_lock aGuard( m_aMutex ); m_bChanged = true; - m_aQueues = aSysPrintQueues; + m_aQueues = std::move(aSysPrintQueues); m_aCommand = OUString::createFromAscii( rParm.pPrintCommand ); #if OSL_DEBUG_LEVEL > 1 SAL_INFO("vcl.unx.print", "printing queue command: success."); diff --git a/vcl/unx/gtk3/gtkframe.cxx b/vcl/unx/gtk3/gtkframe.cxx index a180f467ae3a..7f812e1dd894 100644 --- a/vcl/unx/gtk3/gtkframe.cxx +++ b/vcl/unx/gtk3/gtkframe.cxx @@ -6028,7 +6028,7 @@ void GtkSalFrame::IMHandler::signalIMPreeditChanged( GtkIMContext* pIMContext, g pThis->m_aInputEvent.maText = sText; pThis->m_aInputEvent.mnCursorPos = nCursorPos; pThis->m_aInputEvent.mnCursorFlags = nCursorFlags; - pThis->m_aInputFlags = aInputFlags; + pThis->m_aInputFlags = std::move(aInputFlags); pThis->m_aInputEvent.mpTextAttr = pThis->m_aInputFlags.data(); SolarMutexGuard aGuard;