Kaydet (Commit) 0cab8199 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

clang-analyzer-deadcode.DeadStores

nSxe, nSye were unused ever since WMFReader::GetPlaceableBound was introduced
(seemingly, involving some copy/paste) in
fa149f40 "#98505# if there is no WinExt we try
to calculate the extension instead of using (1/1) default which causes a crash
on unix and linux"

Change-Id: Ica6fb9ec1d25bd5314e73610eccef2a4df0c310f
üst 3f74bbf4
......@@ -1697,7 +1697,7 @@ bool WMFReader::GetPlaceableBound( Rectangle& rPlaceableBound, SvStream* pStm )
case W_META_STRETCHDIB:
{
sal_Int32 nWinROP;
sal_uInt16 nSx, nSy, nSxe, nSye, nUsage;
sal_uInt16 nSx, nSy, nUsage;
pStm->ReadInt32( nWinROP );
if( nFunction == W_META_STRETCHDIB )
......@@ -1705,9 +1705,10 @@ bool WMFReader::GetPlaceableBound( Rectangle& rPlaceableBound, SvStream* pStm )
// nSye and nSxe is the number of pixels that has to been used
if( nFunction == W_META_STRETCHDIB || nFunction == W_META_STRETCHBLT || nFunction == W_META_DIBSTRETCHBLT )
{
sal_uInt16 nSxe, nSye;
pStm->ReadUInt16( nSye ).ReadUInt16( nSxe );
else
nSye = nSxe = 0; // set this to zero as indicator not to scale the bitmap later
}
// nSy and nx is the offset of the first pixel
pStm->ReadUInt16( nSy ).ReadUInt16( nSx );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment