summaryrefslogtreecommitdiff
path: root/vcl/source/filter/graphicfilter2.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-15 13:57:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-17 15:06:52 +0200
commit8914595d4623390e4bac9ebbdf0d5ae9ab69aa8a (patch)
tree2fe937925e9cde3e835119c57f12807bc1f419db /vcl/source/filter/graphicfilter2.cxx
parentd69795b9c9d2dac7b751c6fe8b4663c0c26a129b (diff)
loplugin:unusedfields in vcl part1
Change-Id: I67d176003f39992cd0ff9271a7d6ce26d2cb6619 Reviewed-on: https://gerrit.libreoffice.org/38828 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/filter/graphicfilter2.cxx')
-rw-r--r--vcl/source/filter/graphicfilter2.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/vcl/source/filter/graphicfilter2.cxx b/vcl/source/filter/graphicfilter2.cxx
index 0a7d5034e463..121d9690a861 100644
--- a/vcl/source/filter/graphicfilter2.cxx
+++ b/vcl/source/filter/graphicfilter2.cxx
@@ -98,7 +98,6 @@ void GraphicDescriptor::ImpConstruct()
nFormat = GraphicFileFormat::NOT;
nBitsPerPixel = 0;
nPlanes = 0;
- bCompressed = false;
}
bool GraphicDescriptor::ImpDetectBMP( SvStream& rStm, bool bExtendedInfo )
@@ -149,7 +148,7 @@ bool GraphicDescriptor::ImpDetectBMP( SvStream& rStm, bool bExtendedInfo )
// Compression
rStm.ReadUInt32( nTemp32 );
- bCompressed = ( ( nCompression = nTemp32 ) > 0 );
+ nCompression = nTemp32;
// logical width
rStm.SeekRel( 4 );
@@ -461,7 +460,6 @@ bool GraphicDescriptor::ImpDetectPCX( SvStream& rStm, bool bExtendedInfo )
// compression
rStm.ReadUChar( cByte );
- bCompressed = ( cByte > 0 );
bRet = (cByte==0 || cByte ==1);
if (bRet)
@@ -549,7 +547,6 @@ bool GraphicDescriptor::ImpDetectPNG( SvStream& rStm, bool bExtendedInfo )
// Planes always 1;
// compression always
nPlanes = 1;
- bCompressed = true;
sal_uInt32 nLen32 = 0;
nTemp32 = 0;
@@ -718,8 +715,7 @@ bool GraphicDescriptor::ImpDetectTIF( SvStream& rStm, bool bExtendedInfo )
if ( nTemp16 == 259 )
{
rStm.SeekRel( 6 );
- rStm.ReadUInt16( nTemp16 );
- bCompressed = ( nTemp16 > 1 );
+ rStm.ReadUInt16( nTemp16 ); // compression
rStm.SeekRel( 2 );
}
else