summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2016-01-24 14:32:23 +0100
committerDavid Tardon <dtardon@redhat.com>2016-01-24 16:55:21 +0100
commitfdcc9e0b8f083d9964d195ebcddcdeedd40b871d (patch)
tree275805b06c7243a62fd65b0bff2b9a8c0bbed77e
parent93ca0057d6eca140764de446ba9b7d4128e88205 (diff)
limit variable scope
Change-Id: I98d281f55ad76930ccc3fb768fe87aef0c55d2c7
-rw-r--r--vcl/source/gdi/dibtools.cxx3
1 files changed, 1 insertions, 2 deletions
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);