vcl/source/gdi/print2.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 0b527b7fe7fdceb04e9b35b345b58c72d9ddc656
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Apr 12 11:27:06 2021 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Apr 12 13:33:44 2021 +0200

    improve scoping
    
    Change-Id: I3f081312cbfccce4982b8df7538d7d64150a0d11
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113977
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

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 )
         {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to