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

Stephan Bergmann sbergman at redhat.com
Thu Mar 27 11:32:25 PDT 2014


 lotuswordpro/source/filter/lwpparaproperty.hxx |   33 ++++---------------------
 1 file changed, 6 insertions(+), 27 deletions(-)

New commits:
commit e497edc2fa695d71b7f1742c445d2fc9acd308dc
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Mar 27 19:31:49 2014 +0100

    Work around MSC "'override' cannot be used with 'inline'" bug
    
    Change-Id: I2ac787ff911ecc37d28fdd2ea0c2a11e31b720fe

diff --git a/lotuswordpro/source/filter/lwpparaproperty.hxx b/lotuswordpro/source/filter/lwpparaproperty.hxx
index 9675942..5624aeb 100644
--- a/lotuswordpro/source/filter/lwpparaproperty.hxx
+++ b/lotuswordpro/source/filter/lwpparaproperty.hxx
@@ -175,7 +175,7 @@ class LwpParaBorderProperty : public LwpParaProperty
 public:
     LwpParaBorderProperty(LwpObjectStream* pStrm);
 
-    inline sal_uInt32 GetType() SAL_OVERRIDE;
+    sal_uInt32 GetType() SAL_OVERRIDE { return PP_LOCAL_BORDER; }
 
     inline LwpParaBorderOverride* GetLocalParaBorder();
 
@@ -188,17 +188,12 @@ inline LwpParaBorderOverride* LwpParaBorderProperty::GetLocalParaBorder()
     return m_pParaBorderOverride;
 }
 
-inline sal_uInt32 LwpParaBorderProperty::GetType()
-{
-    return PP_LOCAL_BORDER;
-}
-
 class LwpParaBreaksProperty : public LwpParaProperty
 {
 public:
     LwpParaBreaksProperty(LwpObjectStream* pStrm);
 
-    inline sal_uInt32 GetType() SAL_OVERRIDE;
+    sal_uInt32 GetType() SAL_OVERRIDE { return PP_LOCAL_BREAKS; }
 
     inline LwpBreaksOverride* GetLocalParaBreaks();
 
@@ -207,10 +202,6 @@ private:
 
 };
 
-inline sal_uInt32 LwpParaBreaksProperty::GetType()
-{
-    return PP_LOCAL_BREAKS;
-}
 inline LwpBreaksOverride* LwpParaBreaksProperty::GetLocalParaBreaks()
 {
     return m_pBreaks;
@@ -223,7 +214,7 @@ public:
 
     virtual ~LwpParaBulletProperty();
 
-    inline sal_uInt32 GetType() SAL_OVERRIDE;
+    sal_uInt32 GetType() SAL_OVERRIDE { return PP_LOCAL_BULLET; }
 
     inline LwpBulletOverride* GetLocalParaBullet();
 
@@ -231,10 +222,6 @@ private:
     LwpBulletOverride* m_pBullet;
 };
 
-inline sal_uInt32 LwpParaBulletProperty::GetType()
-{
-    return PP_LOCAL_BULLET;
-}
 inline LwpBulletOverride* LwpParaBulletProperty::GetLocalParaBullet()
 {
     return m_pBullet;
@@ -245,16 +232,13 @@ class LwpParaNumberingProperty : public LwpParaProperty
 public:
     LwpParaNumberingProperty(LwpObjectStream* pStrm);
 
-    inline sal_uInt32 GetType() SAL_OVERRIDE;
+    sal_uInt32 GetType() SAL_OVERRIDE { return PP_LOCAL_NUMBERING; }
 
     inline LwpNumberingOverride* GetLocalNumbering() const;
 private:
     LwpNumberingOverride* m_pNumberingOverride;
 };
-inline sal_uInt32 LwpParaNumberingProperty::GetType()
-{
-    return PP_LOCAL_NUMBERING;
-}
+
 inline LwpNumberingOverride* LwpParaNumberingProperty::GetLocalNumbering() const
 {
     return m_pNumberingOverride;
@@ -265,7 +249,7 @@ class LwpParaTabRackProperty : public LwpParaProperty
 public:
     LwpParaTabRackProperty(LwpObjectStream* pStrm);
     ~LwpParaTabRackProperty(void);
-    inline sal_uInt32 GetType() SAL_OVERRIDE;
+    sal_uInt32 GetType() SAL_OVERRIDE { return PP_LOCAL_TABRACK; }
 
     inline LwpTabOverride* GetTab();
 
@@ -278,11 +262,6 @@ inline LwpTabOverride* LwpParaTabRackProperty::GetTab()
     return m_pTabOverride;
 }
 
-inline sal_uInt32 LwpParaTabRackProperty::GetType(void)
-{
-    return PP_LOCAL_TABRACK;
-}
-
 class LwpParaBackGroundProperty : public LwpParaProperty
 {
 public:


More information about the Libreoffice-commits mailing list