[Libreoffice-commits] core.git: sc/source
Thomas Arnhold
thomas at arnhold.org
Tue May 13 11:08:41 PDT 2014
sc/source/filter/rtf/rtfexp.cxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit 894bddec06d811d9cecabdca7133a3b02a184b65
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Sat May 10 15:00:54 2014 +0200
coverity#735464 Logically dead code
Dead since initial import.
Change-Id: Ia9193aa2b90e9ea0e6960605d21a3c34468fc0f7
Reviewed-on: https://gerrit.libreoffice.org/9301
Tested-by: Thomas Arnhold <thomas at arnhold.org>
Reviewed-by: Thomas Arnhold <thomas at arnhold.org>
diff --git a/sc/source/filter/rtf/rtfexp.cxx b/sc/source/filter/rtf/rtfexp.cxx
index bbbda81..356004a 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 );
}
More information about the Libreoffice-commits
mailing list