From 3114d8a12eb14f27229ecaad6d810e2020b86441 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 10 Mar 2017 15:31:28 +0000 Subject: improve scoping Change-Id: I2c7f607f05b07b7ec5453758910fdcb7f27ae697 --- vcl/source/filter/jpeg/JpegReader.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'vcl/source') 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()) -- cgit