summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-04-12 11:27:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-04-12 13:33:44 +0200
commit0b527b7fe7fdceb04e9b35b345b58c72d9ddc656 (patch)
tree41940b2ffc46e5bff444bc3be2c2c82530a606c1 /vcl/source/gdi
parent4d499c7b60532ae9a7006936cf2a48f14bd964d1 (diff)
improve scoping
Change-Id: I3f081312cbfccce4982b8df7538d7d64150a0d11 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113977 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/print2.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx
index 36e4f4285e43..285818e7284b 100644
--- a/vcl/source/gdi/print2.cxx
+++ b/vcl/source/gdi/print2.cxx
@@ -693,14 +693,12 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
aMapModeVDev->mnDPIY = mnDPIY;
aMapModeVDev->EnableOutput(false);
- int nLastBgAction, nActionNum;
-
// weed out page-filling background objects (if they are
// uniformly coloured). Keeping them outside the other
// connected components often prevents whole-page bitmap
// generation.
bool bStillBackground=true; // true until first non-bg action
- nActionNum=0; nLastBgAction=-1;
+ int nActionNum = 0, nLastBgAction = -1;
pCurrAct=const_cast<GDIMetaFile&>(rInMtf).FirstAction();
if( rBackground != COL_TRANSPARENT )
{