diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-14 12:38:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-14 15:47:25 +0200 |
commit | 63b4b3f097c18ed9c1413373b49679f8b37cb9b0 (patch) | |
tree | 05dbc46a9b22d8067eb46896c77f1692d0582047 /vcl/source/gdi | |
parent | 0640e342628ef82cc8f25e99cd3eae32e0f20c02 (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/gdi')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl2.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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) |