cui/source/customize/SvxNotebookbarConfigPage.cxx | 2 +- sc/source/ui/unoobj/nameuno.cxx | 4 ++-- sd/source/ui/view/OutlinerIterator.cxx | 4 ++-- sw/source/core/unocore/unochart.cxx | 2 +- sw/source/core/unocore/unotext.cxx | 4 ++-- sw/source/filter/ww8/ww8par5.cxx | 2 +- vcl/source/bitmap/bitmap.cxx | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-)
New commits: commit 95100bd7326131c519ce98f4c14d3a676bb24fc4 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri Jul 19 08:24:21 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Fri Jul 19 14:53:52 2024 +0200 cid#1609598 COPY_INSTEAD_OF_MOVE and cid#1554697 COPY_INSTEAD_OF_MOVE cid#1554709 COPY_INSTEAD_OF_MOVE cid#1554764 COPY_INSTEAD_OF_MOVE cid#1554804 COPY_INSTEAD_OF_MOVE cid#1554821 COPY_INSTEAD_OF_MOVE cid#1554833 COPY_INSTEAD_OF_MOVE Change-Id: I3ee0bf523b1c8dfde3674ac5088abe5182cbfb34 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170720 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/cui/source/customize/SvxNotebookbarConfigPage.cxx b/cui/source/customize/SvxNotebookbarConfigPage.cxx index da4df844336f..68d53b680a41 100644 --- a/cui/source/customize/SvxNotebookbarConfigPage.cxx +++ b/cui/source/customize/SvxNotebookbarConfigPage.cxx @@ -299,7 +299,7 @@ void SvxNotebookbarConfigPage::searchNodeandAttribute(std::vector<NotebookbarEnt aCategoryEntry.sClassType = sClassId; aCategoryList.push_back(aCategoryEntry); - aCurItemEntry = aCategoryEntry; + aCurItemEntry = std::move(aCategoryEntry); } else if (sClassId == "sfxlo-PriorityMergedHBox") { diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx index edbc0f6b0ea2..1321543d5080 100644 --- a/sc/source/ui/unoobj/nameuno.cxx +++ b/sc/source/ui/unoobj/nameuno.cxx @@ -942,9 +942,9 @@ void ScLabelRangeObj::Modify_Impl( const ScRange* pLabel, const ScRange* pData ) xNewList->Join( *pEntry, true ); if (bColumn) - rDoc.GetColNameRangesRef() = xNewList; + rDoc.GetColNameRangesRef() = std::move(xNewList); else - rDoc.GetRowNameRangesRef() = xNewList; + rDoc.GetRowNameRangesRef() = std::move(xNewList); rDoc.CompileColRowNameFormula(); pDocShell->PostPaint( 0,0,0, rDoc.MaxCol(),rDoc.MaxRow(),MAXTAB, PaintPartFlags::Grid ); diff --git a/sd/source/ui/view/OutlinerIterator.cxx b/sd/source/ui/view/OutlinerIterator.cxx index 492880e9bf7c..eb35b42cbaa6 100644 --- a/sd/source/ui/view/OutlinerIterator.cxx +++ b/sd/source/ui/view/OutlinerIterator.cxx @@ -163,7 +163,7 @@ Iterator OutlinerContainer::CreateIterator (IteratorLocation aLocation) return CreateSelectionIterator ( mpOutliner->maMarkListCopy, mpOutliner->mpDrawDocument, - pOverridingShell ? pOverridingShell : + pOverridingShell ? std::move(pOverridingShell) : mpOutliner->mpWeakViewShell.lock(), mpOutliner->mbDirectionIsForward, aLocation); @@ -171,7 +171,7 @@ Iterator OutlinerContainer::CreateIterator (IteratorLocation aLocation) // Search in the whole document. return CreateDocumentIterator ( mpOutliner->mpDrawDocument, - pOverridingShell ? pOverridingShell : + pOverridingShell ? std::move(pOverridingShell) : mpOutliner->mpWeakViewShell.lock(), mpOutliner->mbDirectionIsForward, aLocation); diff --git a/sw/source/core/unocore/unochart.cxx b/sw/source/core/unocore/unochart.cxx index 7886528cc0d3..5872b607f753 100644 --- a/sw/source/core/unocore/unochart.cxx +++ b/sw/source/core/unocore/unochart.cxx @@ -403,7 +403,7 @@ static void GetFormatAndCreateCursorFromRangeRep( // HACK: remove pending actions for old style tables UnoActionRemoveContext aRemoveContext(rCursor); rCursor.MakeBoxSels(); - rpUnoCursor = pUnoCursor; + rpUnoCursor = std::move(pUnoCursor); } } } diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx index 41653997fd47..4de4897ab223 100644 --- a/sw/source/core/unocore/unotext.cxx +++ b/sw/source/core/unocore/unotext.cxx @@ -1501,7 +1501,7 @@ SwXText::convertToTextFrame( SwPosition aBefore(aTableIdx); bParaBeforeInserted = GetDoc()->getIDocumentContentOperations().AppendTextNode( aBefore ); pStartPam->DeleteMark(); - *pStartPam->GetPoint() = aBefore; + *pStartPam->GetPoint() = std::move(aBefore); pStartStartNode = pStartPam->GetPointNode().StartOfSectionNode(); } if (pEndStartNode->GetStartNodeType() == SwTableBoxStartNode) @@ -1511,7 +1511,7 @@ SwXText::convertToTextFrame( SwPosition aTableEnd(*pTableEnd); bParaAfterInserted = GetDoc()->getIDocumentContentOperations().AppendTextNode( aTableEnd ); pEndPam->DeleteMark(); - *pEndPam->GetPoint() = aTableEnd; + *pEndPam->GetPoint() = std::move(aTableEnd); pEndStartNode = pEndPam->GetPointNode().StartOfSectionNode(); } // now we should have the positions in the same hierarchy diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx index ceb1bf07fd99..7ab28e7a70ec 100644 --- a/sw/source/filter/ww8/ww8par5.cxx +++ b/sw/source/filter/ww8/ww8par5.cxx @@ -616,7 +616,7 @@ sal_uInt16 SwWW8ImplReader::End_Field() aRestorePos.SetContent(nMaxValidIndex); } - *m_pPaM->GetPoint() = aRestorePos; + *m_pPaM->GetPoint() = std::move(aRestorePos); break; } case ww::eIF: // IF-field diff --git a/vcl/source/bitmap/bitmap.cxx b/vcl/source/bitmap/bitmap.cxx index 38a3a90c09dc..e381a79209da 100644 --- a/vcl/source/bitmap/bitmap.cxx +++ b/vcl/source/bitmap/bitmap.cxx @@ -1090,7 +1090,7 @@ bool Bitmap::ImplConvertUp(vcl::PixelFormat ePixelFormat, Color const * pExtColo const MapMode aMap(maPrefMapMode); const Size aSize(maPrefSize); - *this = aNewBmp; + *this = std::move(aNewBmp); maPrefMapMode = aMap; maPrefSize = aSize;