diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-01 13:14:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-08 07:37:40 +0100 |
commit | 7f48fa8152bd3320af7276d811b752c5a762dcce (patch) | |
tree | a95f2aec74a17050e825eb78833ee8f0274cb728 /vcl/source/outdev/rect.cxx | |
parent | f10b7e820844d94b4dbec3dcaf24392275940914 (diff) |
loplugin:collapseif in tools..xmloff
Change-Id: Iea1227a9f13a0a618d9bb6b0bbedaa5ce8d1a4f5
Reviewed-on: https://gerrit.libreoffice.org/62732
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/outdev/rect.cxx')
-rw-r--r-- | vcl/source/outdev/rect.cxx | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/vcl/source/outdev/rect.cxx b/vcl/source/outdev/rect.cxx index 049612c5501e..0770b68db5b6 100644 --- a/vcl/source/outdev/rect.cxx +++ b/vcl/source/outdev/rect.cxx @@ -88,11 +88,8 @@ void OutputDevice::DrawRect( const tools::Rectangle& rRect, nVertRound = ImplLogicHeightToDevicePixel( nVertRound ); // we need a graphics - if ( !mpGraphics ) - { - if ( !AcquireGraphics() ) - return; - } + if ( !mpGraphics && !AcquireGraphics() ) + return; if ( mbInitClipRegion ) InitClipRegion(); @@ -142,11 +139,8 @@ void OutputDevice::Invert( const tools::Rectangle& rRect, InvertFlags nFlags ) aRect.Justify(); // we need a graphics - if ( !mpGraphics ) - { - if ( !AcquireGraphics() ) - return; - } + if ( !mpGraphics && !AcquireGraphics() ) + return; if ( mbInitClipRegion ) InitClipRegion(); @@ -178,11 +172,8 @@ void OutputDevice::Invert( const tools::Polygon& rPoly, InvertFlags nFlags ) tools::Polygon aPoly( ImplLogicToDevicePixel( rPoly ) ); // we need a graphics - if ( !mpGraphics ) - { - if ( !AcquireGraphics() ) - return; - } + if ( !mpGraphics && !AcquireGraphics() ) + return; if ( mbInitClipRegion ) InitClipRegion(); |