diff options
author | David Tardon <dtardon@redhat.com> | 2016-01-24 14:32:23 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-01-24 16:55:21 +0100 |
commit | fdcc9e0b8f083d9964d195ebcddcdeedd40b871d (patch) | |
tree | 275805b06c7243a62fd65b0bff2b9a8c0bbed77e /vcl | |
parent | 93ca0057d6eca140764de446ba9b7d4128e88205 (diff) |
limit variable scope
Change-Id: I98d281f55ad76930ccc3fb768fe87aef0c55d2c7
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/dibtools.cxx | 3 |
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); |