diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-09 12:59:01 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-09 13:50:38 +0200 |
commit | 7ea8a4e74381de7c904ea49eabff03b4d4fd9e5f (patch) | |
tree | 503055a548943e41aa8d245bb80ae601f4e3c44f /vcl | |
parent | 6747fa4fe8a939ad877f95bc777b29a1ec242436 (diff) |
clang-analyzer-deadcode.DeadStores
Change-Id: Ie1d3afb0b9ca59232214d9ab6da9fa761a3fd449
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/impgraph.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx index 735eab157792..ecd1c8f5c47b 100644 --- a/vcl/source/gdi/impgraph.cxx +++ b/vcl/source/gdi/impgraph.cxx @@ -947,7 +947,6 @@ bool ImpGraphic::ImplReadEmbedded( SvStream& rIStm ) Size aSize; sal_uInt32 nId; sal_Int32 nType; - sal_Int32 nLen; const SvStreamEndian nOldFormat = rIStm.GetEndian(); bool bRet = false; @@ -961,6 +960,7 @@ bool ImpGraphic::ImplReadEmbedded( SvStream& rIStm ) VersionCompat* pCompat = new VersionCompat( rIStm, StreamMode::READ ); rIStm.ReadInt32( nType ); + sal_Int32 nLen; rIStm.ReadInt32( nLen ); ReadPair( rIStm, aSize ); ReadMapMode( rIStm, aMapMode ); @@ -976,6 +976,7 @@ bool ImpGraphic::ImplReadEmbedded( SvStream& rIStm ) rIStm.SeekRel( -4L ); + sal_Int32 nLen; rIStm.ReadInt32( nType ).ReadInt32( nLen ).ReadInt32( nWidth ).ReadInt32( nHeight ); rIStm.ReadInt32( nMapMode ).ReadInt32( nScaleNumX ).ReadInt32( nScaleDenomX ).ReadInt32( nScaleNumY ); rIStm.ReadInt32( nScaleDenomY ).ReadInt32( nOffsX ).ReadInt32( nOffsY ); @@ -984,7 +985,6 @@ bool ImpGraphic::ImplReadEmbedded( SvStream& rIStm ) if( nType > 100L ) { nType = OSL_SWAPDWORD( nType ); - nLen = OSL_SWAPDWORD( nLen ); nWidth = OSL_SWAPDWORD( nWidth ); nHeight = OSL_SWAPDWORD( nHeight ); nMapMode = OSL_SWAPDWORD( nMapMode ); |