diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-01 12:05:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-02 10:05:45 +0200 |
commit | d5ad9c0777602541fb39dea5da71e7bfd70595fb (patch) | |
tree | 6a11c24cbe459c5d9447312f6fc77a497c8622cf /vcl | |
parent | c7bc52f8e69f772edad9c4f695155281e19b1952 (diff) |
cid#1556086 COPY_INSTEAD_OF_MOVE
and
cid#1556087 COPY_INSTEAD_OF_MOVE
cid#1556093 COPY_INSTEAD_OF_MOVE
cid#1556094 COPY_INSTEAD_OF_MOVE
cid#1556105 COPY_INSTEAD_OF_MOVE
cid#1556121 COPY_INSTEAD_OF_MOVE
cid#1556184 COPY_INSTEAD_OF_MOVE
cid#1556399 COPY_INSTEAD_OF_MOVE
cid#1556405 COPY_INSTEAD_OF_MOVE
cid#1556419 COPY_INSTEAD_OF_MOVE
cid#1556421 COPY_INSTEAD_OF_MOVE
cid#1556444 COPY_INSTEAD_OF_MOVE
cid#1556448 COPY_INSTEAD_OF_MOVE
cid#1556457 COPY_INSTEAD_OF_MOVE
cid#1556468 COPY_INSTEAD_OF_MOVE
Change-Id: I1f352682daebd4e3ed2e7fe669aa0943dcc33edd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171372
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/region.cxx | 2 | ||||
-rw-r--r-- | vcl/source/outdev/text.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx index 6bb98e1398bd..efe1d989fc7c 100644 --- a/vcl/source/gdi/region.cxx +++ b/vcl/source/gdi/region.cxx @@ -1024,7 +1024,7 @@ void vcl::Region::Intersect( const vcl::Region& rRegion ) // when we have less rectangles, turn around the call vcl::Region aTempRegion = rRegion; aTempRegion.Intersect( *this ); - *this = aTempRegion; + *this = std::move(aTempRegion); } else { diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx index d0bdd7ccf68f..2d41dd412888 100644 --- a/vcl/source/outdev/text.cxx +++ b/vcl/source/outdev/text.cxx @@ -1151,7 +1151,7 @@ static void TrackFontMappingUse( const vcl::Font& originalFont, const SalLayout* return; } } - fontMappingUseData->push_back( { originalName, usedFontNames, 1 } ); + fontMappingUseData->push_back( { originalName, std::move(usedFontNames), 1 } ); } void OutputDevice::StartTrackingFontMappingUse() |