[Libreoffice-commits] core.git: lotuswordpro/source

Caolán McNamara caolanm at redhat.com
Sun Mar 2 13:20:53 PST 2014


 lotuswordpro/source/filter/lwpfribheader.hxx |    2 --
 lotuswordpro/source/filter/lwppara.cxx       |    5 -----
 lotuswordpro/source/filter/lwppara.hxx       |    5 -----
 3 files changed, 12 deletions(-)

New commits:
commit e059218a83ddb5c0e3d5b4ae0ca932d281683edf
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Mar 2 20:53:43 2014 +0000

    coverity#735356 Operands don't affect result
    
    Change-Id: Icd54558abb9d28a5439310ac04613222211e3c61
    Reviewed-on: https://gerrit.libreoffice.org/8423
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/lotuswordpro/source/filter/lwpfribheader.hxx b/lotuswordpro/source/filter/lwpfribheader.hxx
index e6863a6..4bed45e 100644
--- a/lotuswordpro/source/filter/lwpfribheader.hxx
+++ b/lotuswordpro/source/filter/lwpfribheader.hxx
@@ -72,8 +72,6 @@
 
 #define FT_MAXIMUM      30
 
-#define DOC_BADFILEPARAHINTS 0x00800000UL
-
 /* Registration definitions */
 enum
 {
diff --git a/lotuswordpro/source/filter/lwppara.cxx b/lotuswordpro/source/filter/lwppara.cxx
index deff61d..9b95a38 100644
--- a/lotuswordpro/source/filter/lwppara.cxx
+++ b/lotuswordpro/source/filter/lwppara.cxx
@@ -203,11 +203,6 @@ void LwpPara::Read()
     if(!Simple)
     {
         m_Hint.Read(m_pObjStrm);
-        if (IsBadHintsInFile())
-        {
-            // This hint is no good, so throw it away -- SDC 9/28/95
-            m_Hint.Reset();
-        }
     }
 
     m_Story.ReadIndexed(m_pObjStrm);
diff --git a/lotuswordpro/source/filter/lwppara.hxx b/lotuswordpro/source/filter/lwppara.hxx
index aa9b9a9..1c4db95 100644
--- a/lotuswordpro/source/filter/lwppara.hxx
+++ b/lotuswordpro/source/filter/lwppara.hxx
@@ -284,7 +284,6 @@ private:
 
     void OverrideParaBullet(LwpParaProperty* pProps);
     void OverrideParaNumbering(LwpParaProperty* pProps);
-    sal_Bool IsBadHintsInFile();
 
     sal_Bool RegisterMasterPage(XFParaStyle* pBaseStyle);
     void RegisterNewSectionStyle(LwpPageLayout* pLayout);
@@ -393,10 +392,6 @@ inline void LwpPara::SetDropcapLayout(LwpDropcapLayout* pLayout)
 {
     m_pDropcapLayout = pLayout;
 }
-inline sal_Bool LwpPara::IsBadHintsInFile()
-{
-    return (sal_Bool) ((m_nFlags & DOC_BADFILEPARAHINTS) != 0);
-}
 inline double LwpPara::GetBelowSpacing()
 {
     return m_BelowSpacing;


More information about the Libreoffice-commits mailing list