summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-14 12:38:27 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-14 15:47:25 +0200
commit63b4b3f097c18ed9c1413373b49679f8b37cb9b0 (patch)
tree05dbc46a9b22d8067eb46896c77f1692d0582047 /vcl/source
parent0640e342628ef82cc8f25e99cd3eae32e0f20c02 (diff)
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.mcnamara@collabora.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/bitmap/bitmap.cxx4
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx2
-rw-r--r--vcl/source/gdi/pdfwriter_impl2.cxx2
-rw-r--r--vcl/source/window/winproc.cxx2
4 files changed, 5 insertions, 5 deletions
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 ) );
}