diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-10 15:31:28 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-03-10 15:32:05 +0000 |
commit | 3114d8a12eb14f27229ecaad6d810e2020b86441 (patch) | |
tree | 41bd1ea158534d00e9b7fc9a44825f86bc460dcd /vcl/source | |
parent | 43af3605d7e3b372dcc61f9cbc2cabff09396ed5 (diff) |
improve scoping
Change-Id: I2c7f607f05b07b7ec5453758910fdcb7f27ae697
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/filter/jpeg/JpegReader.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/filter/jpeg/JpegReader.cxx b/vcl/source/filter/jpeg/JpegReader.cxx index 7cd9a229b4cb..7490cb305732 100644 --- a/vcl/source/filter/jpeg/JpegReader.cxx +++ b/vcl/source/filter/jpeg/JpegReader.cxx @@ -273,8 +273,6 @@ Graphic JPEGReader::CreateIntermediateGraphic(long nLines) ReadState JPEGReader::Read( Graphic& rGraphic ) { - long nEndPosition; - long nLines; ReadState eReadState; bool bRet = false; sal_uInt8 cDummy; @@ -283,7 +281,7 @@ ReadState JPEGReader::Read( Graphic& rGraphic ) // check if the stream's end is already available mrStream.Seek( STREAM_SEEK_TO_END ); mrStream.ReadUChar( cDummy ); - nEndPosition = mrStream.Tell(); + long nEndPosition = mrStream.Tell(); // else check if at least JPEG_MIN_READ bytes can be read if( mrStream.GetError() == ERRCODE_IO_PENDING ) @@ -300,6 +298,7 @@ ReadState JPEGReader::Read( Graphic& rGraphic ) mrStream.Seek( mnLastPos ); // read the (partial) image + long nLines; ReadJPEG( this, &mrStream, &nLines, GetPreviewSize() ); if (!maBitmap.IsEmpty()) |