Kaydet (Commit) 3870d114 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

clang-analyzer-deadcode.DeadStores

(a use of nStyleNo at the end of SvxRTFParser::ReadAttr had been in a commented-
out clode block ever since fd069bee "initial
import," and later been cleaned from the code)

Change-Id: Ic9e30cc1bccca9c4246deb50fbc6d545e3ea31a2
üst 7805e7a9
......@@ -206,7 +206,6 @@ void SvxRTFParser::ReadAttr( int nToken, SfxItemSet* pSet )
DBG_ASSERT( pSet, "A SfxItemSet has to be provided as argument!" );
bool bFirstToken = true;
bool bContinue = true;
sal_uInt16 nStyleNo = 0; // default
FontUnderline eUnderline;
FontUnderline eOverline;
FontEmphasisMark eEmphasis;
......@@ -222,7 +221,6 @@ void SvxRTFParser::ReadAttr( int nToken, SfxItemSet* pSet )
{
case RTF_PARD:
RTFPardPlain( true, &pSet );
nStyleNo = 0;
bPardTokenRead = true;
break;
......@@ -287,7 +285,7 @@ void SvxRTFParser::ReadAttr( int nToken, SfxItemSet* pSet )
}
else
{
nStyleNo = -1 == nTokenValue ? 0 : sal_uInt16(nTokenValue);
sal_uInt16 nStyleNo = -1 == nTokenValue ? 0 : sal_uInt16(nTokenValue);
/* setze am akt. auf dem AttrStack stehenden Style die
I sit on akt. which is on the immediate style AttrStack */
// StyleNummer
......
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