Kaydet (Commit) 4079089d authored tarafından Caolán McNamara's avatar Caolán McNamara

clang: Dead increment

Change-Id: I231218ab7a7984943470b62339e34801fb5fb9e3
üst 5b621a30
...@@ -6052,10 +6052,10 @@ void PPTParagraphObj::ApplyTo( SfxItemSet& rSet, boost::optional< sal_Int16 >& ...@@ -6052,10 +6052,10 @@ void PPTParagraphObj::ApplyTo( SfxItemSet& rSet, boost::optional< sal_Int16 >&
} }
} }
sal_uInt32 nIsBullet2, _nTextOfs, _nBulletOfs, nHardAttribute = 0; sal_uInt32 nIsBullet2, _nTextOfs, _nBulletOfs;
GetAttrib( PPT_ParaAttr_BulletOn, nIsBullet2, nDestinationInstance ); GetAttrib(PPT_ParaAttr_BulletOn, nIsBullet2, nDestinationInstance);
nHardAttribute += GetAttrib( PPT_ParaAttr_TextOfs, _nTextOfs, nDestinationInstance ) ? 1 : 0; GetAttrib(PPT_ParaAttr_TextOfs, _nTextOfs, nDestinationInstance);
nHardAttribute += GetAttrib( PPT_ParaAttr_BulletOfs, _nBulletOfs, nDestinationInstance ) ? 1 : 0; GetAttrib(PPT_ParaAttr_BulletOfs, _nBulletOfs, nDestinationInstance);
if ( !nIsBullet2 ) if ( !nIsBullet2 )
{ {
SvxLRSpaceItem aLRSpaceItem( EE_PARA_LRSPACE ); SvxLRSpaceItem aLRSpaceItem( EE_PARA_LRSPACE );
......
...@@ -87,7 +87,6 @@ SvStream& SvxGrfCrop::Store( SvStream& rStrm, sal_uInt16 nVersion ) const ...@@ -87,7 +87,6 @@ SvStream& SvxGrfCrop::Store( SvStream& rStrm, sal_uInt16 nVersion ) const
bool SvxGrfCrop::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const bool SvxGrfCrop::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
{ {
bool bConvert = 0!=(nMemberId&CONVERT_TWIPS); bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
nMemberId &= ~CONVERT_TWIPS;
text::GraphicCrop aRet; text::GraphicCrop aRet;
aRet.Left = nLeft; aRet.Left = nLeft;
aRet.Right = nRight; aRet.Right = nRight;
...@@ -110,7 +109,6 @@ bool SvxGrfCrop::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const ...@@ -110,7 +109,6 @@ bool SvxGrfCrop::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
bool SvxGrfCrop::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) bool SvxGrfCrop::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
{ {
bool bConvert = 0!=(nMemberId&CONVERT_TWIPS); bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
nMemberId &= ~CONVERT_TWIPS;
text::GraphicCrop aVal; text::GraphicCrop aVal;
if(!(rVal >>= aVal)) if(!(rVal >>= aVal))
......
...@@ -1804,7 +1804,6 @@ bool ServerFont::ApplyGSUB( const FontSelectPattern& rFSD ) ...@@ -1804,7 +1804,6 @@ bool ServerFont::ApplyGSUB( const FontSelectPattern& rFSD )
case 1: // Single Substitution Format 1 case 1: // Single Substitution Format 1
{ {
const sal_uInt16 nDeltaGlyphId = GetUShort( pSubLookup ); const sal_uInt16 nDeltaGlyphId = GetUShort( pSubLookup );
pSubLookup += 2;
for(; it != aSubstVector.end(); ++it ) for(; it != aSubstVector.end(); ++it )
(*it).second = (*it).first + nDeltaGlyphId; (*it).second = (*it).first + nDeltaGlyphId;
} }
......
...@@ -666,7 +666,7 @@ GlyphSet::PSUploadEncoding(osl::File* pOutFile, PrinterGfx &rGfx) ...@@ -666,7 +666,7 @@ GlyphSet::PSUploadEncoding(osl::File* pOutFile, PrinterGfx &rGfx)
// flush line // flush line
if (nSize >= 70) if (nSize >= 70)
{ {
nSize += psp::appendStr ("\n", pEncodingVector + nSize); psp::appendStr ("\n", pEncodingVector + nSize);
psp::WritePS (pOutFile, pEncodingVector); psp::WritePS (pOutFile, pEncodingVector);
nSize = 0; nSize = 0;
} }
......
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