diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-05-10 15:00:54 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-05-13 18:08:15 +0000 |
commit | 894bddec06d811d9cecabdca7133a3b02a184b65 (patch) | |
tree | 177924d226142f60139939d15b75160f0e6501f6 /sc/source/filter/rtf | |
parent | 7339ab25eee98b9c90cf46e9073c1faa6b53e9bc (diff) |
coverity#735464 Logically dead code
Dead since initial import.
Change-Id: Ia9193aa2b90e9ea0e6960605d21a3c34468fc0f7
Reviewed-on: https://gerrit.libreoffice.org/9301
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'sc/source/filter/rtf')
-rw-r--r-- | sc/source/filter/rtf/rtfexp.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sc/source/filter/rtf/rtfexp.cxx b/sc/source/filter/rtf/rtfexp.cxx index bbbda812300c..356004a7b199 100644 --- a/sc/source/filter/rtf/rtfexp.cxx +++ b/sc/source/filter/rtf/rtfexp.cxx @@ -199,8 +199,7 @@ void ScRTFExport::WriteCell( SCTAB nTab, SCROW nRow, SCCOL nCol ) } } - bool bResetPar, bResetAttr; - bResetPar = bResetAttr = false; + bool bResetAttr(false); const SvxHorJustifyItem& rHorJustifyItem = (const SvxHorJustifyItem&)pAttr->GetItem( ATTR_HOR_JUSTIFY ); const SvxWeightItem& rWeightItem = (const SvxWeightItem&) pAttr->GetItem( ATTR_FONT_WEIGHT ); @@ -243,8 +242,6 @@ void ScRTFExport::WriteCell( SCTAB nTab, SCROW nRow, SCCOL nCol ) RTFOutFuncs::Out_String( rStrm, aContent ); rStrm.WriteCharPtr( OOO_STRING_SVTOOLS_RTF_CELL ); - if ( bResetPar ) - rStrm.WriteCharPtr( OOO_STRING_SVTOOLS_RTF_PARD ).WriteCharPtr( OOO_STRING_SVTOOLS_RTF_INTBL ); if ( bResetAttr ) rStrm.WriteCharPtr( OOO_STRING_SVTOOLS_RTF_PLAIN ); } |