diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-01-01 20:49:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-01-02 00:36:32 +0100 |
commit | 6bccf8e409a1722ab6920f60478c97241790be87 (patch) | |
tree | d96ba9e1ab746771527f210bf8099a42812340eb /vcl | |
parent | 58d7eabbed200daaf8b6e1fcb82687ce70184412 (diff) |
cid#1545235 COPY_INSTEAD_OF_MOVE
and
cid#1545514 COPY_INSTEAD_OF_MOVE
cid#1546000 COPY_INSTEAD_OF_MOVE
std::move looks useful there
Change-Id: Ic3967f283ac4c4f5b8b4797889099af5f2dbb117
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161526
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/impgraph.cxx | 4 | ||||
-rw-r--r-- | vcl/source/gdi/vectorgraphicdata.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx index ac36d2c72be4..7150aab6b0e6 100644 --- a/vcl/source/gdi/impgraph.cxx +++ b/vcl/source/gdi/impgraph.cxx @@ -1398,7 +1398,7 @@ void ImpGraphic::updateFromLoadedGraphic(const ImpGraphic* pGraphic) // Only set the size in case the unloaded and loaded unit matches. setPrefSize(aPrefSize); } - maGraphicExternalLink = aLink; + maGraphicExternalLink = std::move(aLink); } else { @@ -1683,7 +1683,7 @@ bool ImpGraphic::swapInGraphic(SvStream& rStream) if (!rStream.GetError()) { - maVectorGraphicData = aVectorGraphicDataPtr; + maVectorGraphicData = std::move(aVectorGraphicDataPtr); bReturn = true; } } diff --git a/vcl/source/gdi/vectorgraphicdata.cxx b/vcl/source/gdi/vectorgraphicdata.cxx index 9d94b171a45f..957d15c13a41 100644 --- a/vcl/source/gdi/vectorgraphicdata.cxx +++ b/vcl/source/gdi/vectorgraphicdata.cxx @@ -319,7 +319,7 @@ VectorGraphicData::VectorGraphicData( if (!rIStm.GetError()) { - maDataContainer = aData; + maDataContainer = std::move(aData); } } } |