include/svx/nbdtmg.hxx |   27 +++++++++++++++++++++++----
 1 file changed, 23 insertions(+), 4 deletions(-)

New commits:
commit 09650703d3a6f8e579d2d822fbb59de0da8c070e
Author: Norbert Thiebaud <[email protected]>
Date:   Wed Jun 26 20:24:24 2013 -0500

    coverity#1028587-9 Unitialized scalar field
    
    Change-Id: Id8ad238d9aa029df0c5e970b2b8fb2145b87be25
    Reviewed-on: https://gerrit.libreoffice.org/4557
    Reviewed-by: Michael Stahl <[email protected]>
    Tested-by: Michael Stahl <[email protected]>

diff --git a/include/svx/nbdtmg.hxx b/include/svx/nbdtmg.hxx
index eb75368..c92bb0f 100644
--- a/include/svx/nbdtmg.hxx
+++ b/include/svx/nbdtmg.hxx
@@ -190,9 +190,28 @@ class SVX_DLLPUBLIC NBOTypeMgrBase
         void            StoreMapUnit_impl();
 
     public:
-        NBOTypeMgrBase(const NBOType 
aType):eType(aType),pSet(0),eCoreUnit(SFX_MAPUNIT_TWIP),aNumCharFmtName(String()){}
-        NBOTypeMgrBase(const NBOType aType,const SfxItemSet* 
pArg):eType(aType),pSet(pArg),eCoreUnit(SFX_MAPUNIT_TWIP),aNumCharFmtName(String()){}
-        NBOTypeMgrBase(const NBOTypeMgrBase& aTypeMgr){eType = 
aTypeMgr.eType;pSet = aTypeMgr.pSet;eCoreUnit = 
aTypeMgr.eCoreUnit;aNumCharFmtName = aTypeMgr.aNumCharFmtName; }
+        NBOTypeMgrBase(const NBOType aType)
+            : eType(aType)
+            , pSet(0)
+            , eCoreUnit(SFX_MAPUNIT_TWIP)
+            , aNumCharFmtName(String())
+            , bIsLoading(false)
+        {}
+        NBOTypeMgrBase(const NBOType aType,const SfxItemSet* pArg)
+            : eType(aType)
+            , pSet(pArg)
+            , eCoreUnit(SFX_MAPUNIT_TWIP)
+            , aNumCharFmtName(String())
+            , bIsLoading(false)
+        {}
+        NBOTypeMgrBase(const NBOTypeMgrBase& aTypeMgr)
+        {
+            eType = aTypeMgr.eType;
+            pSet = aTypeMgr.pSet;
+            eCoreUnit = aTypeMgr.eCoreUnit;
+            aNumCharFmtName = aTypeMgr.aNumCharFmtName;
+            bIsLoading = false;
+        }
         virtual ~NBOTypeMgrBase() {}
         virtual void Init()=0;
         virtual sal_uInt16 GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 
mLevel,sal_uInt16 nFromIndex=0)=0;
@@ -208,7 +227,7 @@ class SVX_DLLPUBLIC NBOTypeMgrBase
         String GetBulCharFmtName();
         SfxMapUnit GetMapUnit();
     protected:
-        sal_Bool    bIsLoading;
+        bool    bIsLoading;
         void    ImplLoad(String filename);
         void    ImplStore(String filename);
 
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to