summaryrefslogtreecommitdiff
path: root/editeng/source/rtf
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-09-09 10:22:17 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-09-09 10:24:22 +0200
commit3870d1145696a5d3969c269b5a8b19a6360d6b63 (patch)
tree10618a62c094e2c945b7120ee2a03d87dd15fe15 /editeng/source/rtf
parent7805e7a95437d12f5081237e0e4a064ef53c032a (diff)
clang-analyzer-deadcode.DeadStores
(a use of nStyleNo at the end of SvxRTFParser::ReadAttr had been in a commented- out clode block ever since fd069bee7e57ad529c3c0974559fd2d84ec3151a "initial import," and later been cleaned from the code) Change-Id: Ic9e30cc1bccca9c4246deb50fbc6d545e3ea31a2
Diffstat (limited to 'editeng/source/rtf')
-rw-r--r--editeng/source/rtf/rtfitem.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx
index fb3e84c61eb3..d8a97395817c 100644
--- a/editeng/source/rtf/rtfitem.cxx
+++ b/editeng/source/rtf/rtfitem.cxx
@@ -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