sfx2/source/dialog/dinfdlg.cxx | 2 +- sfx2/source/doc/doctempl.cxx | 2 +- vcl/source/bitmap/bitmap.cxx | 4 ++-- vcl/source/gdi/pdfwriter_impl.cxx | 2 +- vcl/source/gdi/pdfwriter_impl2.cxx | 2 +- vcl/source/window/winproc.cxx | 2 +- vcl/unx/generic/printer/printerinfomanager.cxx | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-)
New commits: commit 63b4b3f097c18ed9c1413373b49679f8b37cb9b0 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Wed Aug 14 12:38:27 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Aug 14 15:47:25 2024 +0200 cid#1557708 COPY_INSTEAD_OF_MOVE and cid#1557707 COPY_INSTEAD_OF_MOVE cid#1557706 COPY_INSTEAD_OF_MOVE cid#1557705 COPY_INSTEAD_OF_MOVE cid#1557704 COPY_INSTEAD_OF_MOVE Change-Id: I2346348d9d896e352db3471e8137c0eca8b21507 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171861 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index a5b3d15ff572..537206b3f98c 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -1186,7 +1186,7 @@ void SfxDocumentPage::Reset( const SfxItemSet* rSet ) aURL.SetSmartURL( aFile); if ( aURL.GetProtocol() == INetProtocol::File ) { - INetURLObject aPath( aURL ); + INetURLObject aPath(std::move(aURL)); aPath.setFinalSlash(); aPath.removeSegment(); // we know it's a folder -> don't need the final slash, but it's better for WB_PATHELLIPSIS diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx index 6a6b1baed8a8..e28d550963ea 100644 --- a/sfx2/source/doc/doctempl.cxx +++ b/sfx2/source/doc/doctempl.cxx @@ -867,7 +867,7 @@ bool SfxDocumentTemplates::CopyFrom if( aTitle.isEmpty() ) { - INetURLObject aURL( aTemplURL ); + INetURLObject aURL(std::move(aTemplURL)); aURL.CutExtension(); aTitle = aURL.getName( INetURLObject::LAST_SEGMENT, true, INetURLObject::DecodeMechanism::WithCharset ); diff --git a/vcl/source/bitmap/bitmap.cxx b/vcl/source/bitmap/bitmap.cxx index 4122052ee00e..267a34323c2d 100644 --- a/vcl/source/bitmap/bitmap.cxx +++ b/vcl/source/bitmap/bitmap.cxx @@ -313,7 +313,7 @@ BitmapChecksum Bitmap::GetChecksum() const if (xNewImpBmp->Create(*mxSalBmp, getPixelFormat())) { Bitmap* pThis = const_cast<Bitmap*>(this); - pThis->mxSalBmp = xNewImpBmp; + pThis->mxSalBmp = std::move(xNewImpBmp); nRet = mxSalBmp->GetChecksum(); } } @@ -1449,7 +1449,7 @@ bool Bitmap::Dither() pWriteAcc.reset(); const MapMode aMap( maPrefMapMode ); const Size aPrefSize( maPrefSize ); - *this = aNewBmp; + *this = std::move(aNewBmp); maPrefMapMode = aMap; maPrefSize = aPrefSize; return true; diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 99f528c84572..bf6c2c94e404 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -1743,7 +1743,7 @@ void PDFWriterImpl::endPage() aFont.SetFontSize( Size( 0, 12 ) ); m_aCurrentPDFState = m_aGraphicsStack.front(); - m_aGraphicsStack.front().m_aFont = aFont; + m_aGraphicsStack.front().m_aFont = std::move(aFont); for (auto & bitmap : m_aBitmaps) { diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx index c675564d5759..12c98cc72937 100644 --- a/vcl/source/gdi/pdfwriter_impl2.cxx +++ b/vcl/source/gdi/pdfwriter_impl2.cxx @@ -651,7 +651,7 @@ void PDFWriterImpl::playMetafile( const GDIMetaFile& i_rMtf, vcl::PDFExtOutDevDa aInfo.m_fMiterLimit = 0.0; break; } - aInfo.m_aDashArray = aDashArray; + aInfo.m_aDashArray = std::move(aDashArray); if(SvtGraphicStroke::joinNone == aStroke.getJoinType() && fStrokeWidth > 0.0) diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx index e2e47160e97f..64c101a8c911 100644 --- a/vcl/source/window/winproc.cxx +++ b/vcl/source/window/winproc.cxx @@ -791,7 +791,7 @@ bool ImplHandleMouseEvent( const VclPtr<vcl::Window>& xWindow, NotifyEventType n * Yield stack. */ ContextMenuEvent* pEv = new ContextMenuEvent; - pEv->pWindow = pChild; + pEv->pWindow = std::move(pChild); pEv->aChildPos = aChildPos; Application::PostUserEvent( Link<void*,void>( pEv, ContextMenuEventLink ) ); } diff --git a/vcl/unx/generic/printer/printerinfomanager.cxx b/vcl/unx/generic/printer/printerinfomanager.cxx index ecfe13cbd247..610bbd2ab0bf 100644 --- a/vcl/unx/generic/printer/printerinfomanager.cxx +++ b/vcl/unx/generic/printer/printerinfomanager.cxx @@ -512,7 +512,7 @@ void PrinterInfoManager::initialize() aPrinter.m_aInfo.m_aComment = printQueue.m_aComment; aPrinter.m_aInfo.m_aLocation = printQueue.m_aLocation; - m_aPrinters[ aPrinterName ] = aPrinter; + m_aPrinters[aPrinterName] = std::move(aPrinter); } }