diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-01-07 16:24:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-01-08 13:09:02 +0100 |
commit | 6342aa6c665012f51a5c11f0293d5d3ff3a573ee (patch) | |
tree | eba3c93b801a416b50ba203980a901421b719492 /emfio/source | |
parent | 7413b4ad50b38cf9839fc3e3d4d0bec6ada90a6a (diff) |
cid#1545370 COPY_INSTEAD_OF_MOVE
and
cid#1545364 COPY_INSTEAD_OF_MOVE
cid#1545363 COPY_INSTEAD_OF_MOVE
cid#1545344 COPY_INSTEAD_OF_MOVE
cid#1545299 COPY_INSTEAD_OF_MOVE
cid#1545287 COPY_INSTEAD_OF_MOVE
cid#1545267 COPY_INSTEAD_OF_MOVE
cid#1545256 COPY_INSTEAD_OF_MOVE
cid#1545226 COPY_INSTEAD_OF_MOVE
cid#1545500 COPY_INSTEAD_OF_MOVE
cid#1545538 COPY_INSTEAD_OF_MOVE
cid#1545618 COPY_INSTEAD_OF_MOVE
cid#1545681 COPY_INSTEAD_OF_MOVE
cid#1545750 COPY_INSTEAD_OF_MOVE
cid#1545778 COPY_INSTEAD_OF_MOVE
cid#1545785 COPY_INSTEAD_OF_MOVE
cid#1545799 COPY_INSTEAD_OF_MOVE
cid#1545847 COPY_INSTEAD_OF_MOVE
cid#1545958 COPY_INSTEAD_OF_MOVE
cid#1545963 COPY_INSTEAD_OF_MOVE
cid#1545990 COPY_INSTEAD_OF_MOVE
cid#1546013 COPY_INSTEAD_OF_MOVE
cid#1546029 COPY_INSTEAD_OF_MOVE
cid#1546079 COPY_INSTEAD_OF_MOVE
cid#1546104 COPY_INSTEAD_OF_MOVE
cid#1546127 COPY_INSTEAD_OF_MOVE
cid#1546133 COPY_INSTEAD_OF_MOVE
cid#1546155 COPY_INSTEAD_OF_MOVE
cid#1546190 COPY_INSTEAD_OF_MOVE
cid#1546216 COPY_INSTEAD_OF_MOVE
cid#1546273 COPY_INSTEAD_OF_MOVE
cid#1546315 COPY_INSTEAD_OF_MOVE
cid#1546326 COPY_INSTEAD_OF_MOVE
cid#1546387 COPY_INSTEAD_OF_MOVE
accept some reasonable suggestions
Change-Id: I7b004086d490c7618d8fe7a21a53cfa8ac1f8408
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161748
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'emfio/source')
-rw-r--r-- | emfio/source/reader/mtftools.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx index f5516648780a..546a7595ced9 100644 --- a/emfio/source/reader/mtftools.cxx +++ b/emfio/source/reader/mtftools.cxx @@ -1322,7 +1322,7 @@ namespace emfio void MtfTools::DrawRectWithBGColor(const tools::Rectangle& rRect) { WinMtfFillStyle aFillStyleBackup = maFillStyle; - bool aTransparentBackup = maLineStyle.bTransparent; + bool bTransparentBackup = maLineStyle.bTransparent; BackgroundMode mnBkModeBackup = mnBkMode; const tools::Polygon aPoly( rRect ); @@ -1332,8 +1332,8 @@ namespace emfio ImplSetNonPersistentLineColorTransparenz(); DrawPolygon(aPoly, false); mnBkMode = mnBkModeBackup; // The rectangle needs to be always drawned even if mode is transparent - maFillStyle = aFillStyleBackup; - maLineStyle.bTransparent = aTransparentBackup; + maFillStyle = std::move(aFillStyleBackup); + maLineStyle.bTransparent = bTransparentBackup; } void MtfTools::DrawRect( const tools::Rectangle& rRect, bool bEdge ) |