From fdcc9e0b8f083d9964d195ebcddcdeedd40b871d Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sun, 24 Jan 2016 14:32:23 +0100 Subject: limit variable scope Change-Id: I98d281f55ad76930ccc3fb768fe87aef0c55d2c7 --- vcl/source/gdi/dibtools.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vcl') diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx index 2ec4c2aebb95..cfc31e9d156b 100644 --- a/vcl/source/gdi/dibtools.cxx +++ b/vcl/source/gdi/dibtools.cxx @@ -778,7 +778,6 @@ bool ImplReadDIBBody( SvStream& rIStm, Bitmap& rBmp, Bitmap* pBmpAlpha, sal_uLon { sal_uInt32 nCodedSize(0); sal_uInt32 nUncodedSize(0); - sal_uLong nCodedPos(0); // read coding information rIStm.ReadUInt32( nCodedSize ).ReadUInt32( nUncodedSize ).ReadUInt32( aHeader.nCompression ); @@ -791,7 +790,7 @@ bool ImplReadDIBBody( SvStream& rIStm, Bitmap& rBmp, Bitmap* pBmpAlpha, sal_uLon if (nSizeInc > 0) { // decode buffer - nCodedPos = rIStm.Tell(); + const sal_uLong nCodedPos = rIStm.Tell(); ZCodec aCodec; aCodec.BeginCompression(); aData.resize(nSizeInc); -- cgit