[Libreoffice-commits] core.git: 10 commits - editeng/source include/svx include/vcl sd/source sfx2/source svx/source sw/source writerfilter/source

Norbert Thiebaud nthiebaud at gmail.com
Tue Jan 28 21:01:00 PST 2014


 editeng/source/misc/hangulhanja.cxx          |   59 +++++++++++++--------------
 include/svx/nbdtmg.hxx                       |   11 +++--
 include/vcl/layout.hxx                       |    1 
 sd/source/ui/sidebar/MasterPagesSelector.cxx |    1 
 sfx2/source/doc/docfilt.cxx                  |    6 ++
 svx/source/dialog/dialcontrol.cxx            |    5 +-
 svx/source/dialog/relfld.cxx                 |   14 ++++--
 sw/source/filter/ww8/ww8par.cxx              |    6 +-
 writerfilter/source/dmapper/PropertyMap.cxx  |    3 -
 9 files changed, 62 insertions(+), 44 deletions(-)

New commits:
commit 097e67c758a5bef7ed430776c985819ab5993158
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Tue Jan 28 21:14:35 2014 -0600

    coverity#1019409 : Uninitialized scalar field
    
    Change-Id: I54c360fbdb2d7eed786ff7e7566d6ebe12ed833c

diff --git a/editeng/source/misc/hangulhanja.cxx b/editeng/source/misc/hangulhanja.cxx
index aa952b8..2455257 100644
--- a/editeng/source/misc/hangulhanja.cxx
+++ b/editeng/source/misc/hangulhanja.cxx
@@ -230,29 +230,34 @@ namespace editeng
     HangulHanjaConversion_Impl::StringMap HangulHanjaConversion_Impl::m_aRecentlyUsedList = HangulHanjaConversion_Impl::StringMap();
 
     HangulHanjaConversion_Impl::HangulHanjaConversion_Impl( Window* _pUIParent,
-        const Reference< XComponentContext >& rxContext,
-        const Locale& _rSourceLocale,
-        const Locale& _rTargetLocale,
-        const Font* _pTargetFont,
-        sal_Int32 _nOptions,
-        bool _bIsInteractive,
-        HangulHanjaConversion* _pAntiImpl )
-: m_pConversionDialog( NULL )
-, m_pUIParent( _pUIParent )
-, m_xContext( rxContext )
-, m_aSourceLocale( _rSourceLocale )
-, m_nSourceLang( LanguageTag::convertToLanguageType( _rSourceLocale ) )
-, m_nTargetLang( LanguageTag::convertToLanguageType( _rTargetLocale ) )
-, m_pTargetFont( _pTargetFont )
-, m_bIsInteractive( _bIsInteractive )
-, m_pAntiImpl( _pAntiImpl )
-, m_nCurrentPortionLang( LANGUAGE_NONE )
-, m_nCurrentStartIndex( 0 )
-, m_nCurrentEndIndex( 0 )
-, m_nReplacementBaseIndex( 0 )
-, m_nCurrentConversionOption( TextConversionOption::NONE )
-, m_nCurrentConversionType( -1 ) // not yet known
-, m_bTryBothDirections( true )
+                                                            const Reference< XComponentContext >& rxContext,
+                                                            const Locale& _rSourceLocale,
+                                                            const Locale& _rTargetLocale,
+                                                            const Font* _pTargetFont,
+                                                            sal_Int32 _nOptions,
+                                                            bool _bIsInteractive,
+                                                            HangulHanjaConversion* _pAntiImpl )
+        : m_pConversionDialog( NULL )
+        , m_pUIParent( _pUIParent )
+        , m_xContext( rxContext )
+        , m_aSourceLocale( _rSourceLocale )
+        , m_nSourceLang( LanguageTag::convertToLanguageType( _rSourceLocale ) )
+        , m_nTargetLang( LanguageTag::convertToLanguageType( _rTargetLocale ) )
+        , m_pTargetFont( _pTargetFont )
+        , m_nConvOptions(_nOptions)
+        , m_bIsInteractive( _bIsInteractive )
+        , m_pAntiImpl( _pAntiImpl )
+        , m_bByCharacter((_nOptions & CHARACTER_BY_CHARACTER) ? true : false)
+        , m_eConversionFormat( HHC::eSimpleConversion)
+        , m_ePrimaryConversionDirection( HHC::eHangulToHanja)    // used for eConvHangulHanja
+        , m_eCurrentConversionDirection( HHC::eHangulToHanja)    // used for eConvHangulHanja
+        , m_nCurrentPortionLang( LANGUAGE_NONE )
+        , m_nCurrentStartIndex( 0 )
+        , m_nCurrentEndIndex( 0 )
+        , m_nReplacementBaseIndex( 0 )
+        , m_nCurrentConversionOption( TextConversionOption::NONE )
+        , m_nCurrentConversionType( -1 ) // not yet known
+        , m_bTryBothDirections( true )
     {
         implReadOptionsFromConfiguration();
 
@@ -266,16 +271,10 @@ namespace editeng
             m_eConvType = HHC::eConvSimplifiedTraditional;
         else
         {
+            m_eConvType = HHC::eConvHangulHanja;
             OSL_FAIL( "failed to determine conversion type from languages" );
         }
 
-        // set remaining conversion parameters to their default values
-        m_nConvOptions      = _nOptions;
-        m_bByCharacter      = 0 != (_nOptions & CHARACTER_BY_CHARACTER);
-        m_eConversionFormat = HHC::eSimpleConversion;
-        m_ePrimaryConversionDirection = HHC::eHangulToHanja;    // used for eConvHangulHanja
-        m_eCurrentConversionDirection = HHC::eHangulToHanja;    // used for eConvHangulHanja
-
         m_xConverter = TextConversion::create( m_xContext );
     }
 
commit f36206a7f0a3f8de4f72b1af0d50ef334216dbe6
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Tue Jan 28 21:01:51 2014 -0600

    coverity#1019410 : Uninitialized scalar field
    
    Change-Id: I121421f929caffa6e4ca5a657d190c1d544e5365

diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx
index 3ea8d31..3ed5862 100644
--- a/include/vcl/layout.hxx
+++ b/include/vcl/layout.hxx
@@ -69,6 +69,7 @@ public:
     VclBox(Window *pParent, bool bHomogeneous, int nSpacing)
         : VclContainer(pParent)
         , m_bHomogeneous(bHomogeneous)
+        , m_bVerticalContainer(false)
         , m_nSpacing(nSpacing)
     {
     }
commit d80d2e90fc43d90430a9d840725bb99f92d0415b
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Tue Jan 28 20:59:56 2014 -0600

    coverity#1019411 : Uninitialized scalar field
    
    Change-Id: If7cc1cd9be357c9b9bb82bfffe3f560ac29e61d9

diff --git a/sfx2/source/doc/docfilt.cxx b/sfx2/source/doc/docfilt.cxx
index b124c32..60b53bc 100644
--- a/sfx2/source/doc/docfilt.cxx
+++ b/sfx2/source/doc/docfilt.cxx
@@ -42,7 +42,11 @@ DBG_NAME(SfxFilter)
 
 SfxFilter::SfxFilter( const OUString& rProvider, const OUString &rFilterName ) :
     maFilterName(rFilterName),
-    maProvider(rProvider)
+    maProvider(rProvider),
+    nFormatType(0),
+    nVersion(0),
+    lFormat(0),
+    nDocIcon(0)
 {
 }
 
commit 026945320ab3d1e2e38dc29b65551af556d4d601
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Tue Jan 28 20:55:28 2014 -0600

    coverity#1028539 : Uninitialized scalar field
    
    Change-Id: Ia3b39d8535cb3e7c0c625d46d45c506ba0dee9d7

diff --git a/sd/source/ui/sidebar/MasterPagesSelector.cxx b/sd/source/ui/sidebar/MasterPagesSelector.cxx
index 9d1444a..cf79711 100644
--- a/sd/source/ui/sidebar/MasterPagesSelector.cxx
+++ b/sd/source/ui/sidebar/MasterPagesSelector.cxx
@@ -74,6 +74,7 @@ MasterPagesSelector::MasterPagesSelector (
       maMutex(),
       mpContainer(rpContainer),
       mrDocument(rDocument),
+      mbSmallPreviewSize(false),
       mrBase(rBase),
       mnDefaultClickAction(SID_TP_APPLY_TO_ALL_SLIDES),
       maPreviewUpdateQueue(),
commit 9dcde4e0e3fdb9e3986a6fad543bdeec4a342c84
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Tue Jan 28 20:51:08 2014 -0600

    coverity#1028570 : Uninitialized scalar field
    
    Change-Id: I06a5e3c23e81c6ac8f03aa014f7ea7103779a268

diff --git a/include/svx/nbdtmg.hxx b/include/svx/nbdtmg.hxx
index 028b457..130b5c66 100644
--- a/include/svx/nbdtmg.hxx
+++ b/include/svx/nbdtmg.hxx
@@ -70,6 +70,11 @@ class  SVX_DLLPUBLIC NumSettings_Impl
         NumSettings_Impl()
             : nNumberType(0)
             , nParentNumbering(0)
+            , eLabelFollowedBy(SvxNumberFormat::NOTHING)
+            , nTabValue (0)
+            , eNumAlign(SVX_ADJUST_LEFT)
+            , nNumAlignAt(0)
+            , nNumIndentAt(0)
             , pBrushItem(0)
             , aSize(0,0)
         {}
commit 6580708fcdc59271b7dd56334ac2bc9d7565b4cc
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Tue Jan 28 20:44:53 2014 -0600

    coverity#1028571 : Uninitialized scalar field
    
    Change-Id: I810dad2b8e641c88605de998fc1e569208dde917

diff --git a/include/svx/nbdtmg.hxx b/include/svx/nbdtmg.hxx
index bad5c14..028b457 100644
--- a/include/svx/nbdtmg.hxx
+++ b/include/svx/nbdtmg.hxx
@@ -97,12 +97,12 @@ class  SVX_DLLPUBLIC BulletsSettings_Impl:public BulletsSettings
 {
     public:
         sal_Unicode cBulletChar;
-        //rtl::OUString sBulletFont;
         Font            aFont;
 
     public:
-        BulletsSettings_Impl(NBType eTy) :
-            BulletsSettings(eTy)
+        BulletsSettings_Impl(NBType eTy)
+            : BulletsSettings(eTy)
+            , cBulletChar(0)
             {}
         virtual ~BulletsSettings_Impl(){}
 };
commit c0eba4b725abf8393bac34e39be807cb4479850f
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Tue Jan 28 20:43:13 2014 -0600

    coverity#1028574 : Uninitialized scalar field
    
    Change-Id: I259d8d98094480bbbdf0469c196101bc614785cb

diff --git a/svx/source/dialog/dialcontrol.cxx b/svx/source/dialog/dialcontrol.cxx
index 2e21ec9..69400e1 100644
--- a/svx/source/dialog/dialcontrol.cxx
+++ b/svx/source/dialog/dialcontrol.cxx
@@ -224,14 +224,15 @@ void DialControlBmp::DrawBackground()
 
 // ----------------------------------------------------------------------------
 
-DialControl::DialControl_Impl::DialControl_Impl (
-    Window& rParent ) :
+DialControl::DialControl_Impl::DialControl_Impl ( Window& rParent ) :
     mpBmpEnabled(new DialControlBmp(rParent)),
     mpBmpDisabled(new DialControlBmp(rParent)),
     mpBmpBuffered(new DialControlBmp(rParent)),
     mpLinkField( 0 ),
+    mnLinkedFieldValueMultiplyer( 0 ),
     mnAngle( 0 ),
     mnInitialAngle( 0 ),
+    mnOldAngle( 0 ),
     mnCenterX( 0 ),
     mnCenterY( 0 ),
     mbNoRot( false )
commit 57590fbbe035228fcb62cda2538bd452849d7751
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Tue Jan 28 20:40:22 2014 -0600

    coverity#1028578 : Uninitialized scalar field
    
    Change-Id: If68692796880e6ab65395155108b6490bf8f1971

diff --git a/svx/source/dialog/relfld.cxx b/svx/source/dialog/relfld.cxx
index 4d5a505..37a68e8 100644
--- a/svx/source/dialog/relfld.cxx
+++ b/svx/source/dialog/relfld.cxx
@@ -22,12 +22,16 @@
 
 // -----------------------------------------------------------------------
 
-SvxRelativeField::SvxRelativeField( Window* pParent, WinBits nBits) :
-    MetricField( pParent, nBits)
+SvxRelativeField::SvxRelativeField( Window* pParent, WinBits nBits)
+    : MetricField( pParent, nBits)
+    , nRelMin(0)
+    , nRelMax(0)
+    , nRelStep(0)
+    , bRelativeMode(sal_False)
+    , bRelative(sal_False)
+    , bNegativeEnabled(sal_False)
+
 {
-    bNegativeEnabled = sal_False;
-    bRelativeMode = sal_False;
-    bRelative     = sal_False;
 
     SetDecimalDigits( 2 );
     SetMin( 0 );
commit 6ec921868ea49c67c2f3ca793298fb4084e5261c
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Tue Jan 28 20:33:53 2014 -0600

    coverity#1028589 : Uninitialized scalar field
    
    Change-Id: I96f52e1fafddfb1818fd03f1440b1eff949db47b

diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index 4504278..6de0917 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -6310,8 +6310,10 @@ namespace sw
     }
 }
 
-SwMacroInfo::SwMacroInfo() :
-    SdrObjUserData( SW_DRAWLAYER, SW_UD_IMAPDATA, 0 )
+SwMacroInfo::SwMacroInfo()
+    : SdrObjUserData( SW_DRAWLAYER, SW_UD_IMAPDATA, 0 )
+    , mnShapeId(-1)
+
 {
 }
 
commit e03cd0e03351c7e8c5edeceb4233f81f66c108fe
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Tue Jan 28 20:31:20 2014 -0600

    coverity#1028601 : Uninitialized scalar field
    
    Change-Id: I654af1e44882f9e6fc9f81caab9ad367b508dd38

diff --git a/writerfilter/source/dmapper/PropertyMap.cxx b/writerfilter/source/dmapper/PropertyMap.cxx
index 629e154..8aec430 100644
--- a/writerfilter/source/dmapper/PropertyMap.cxx
+++ b/writerfilter/source/dmapper/PropertyMap.cxx
@@ -1266,7 +1266,8 @@ StyleSheetPropertyMap::StyleSheetPropertyMap() :
     mbCT_TblWidth_typeSet( false ),
     mnListId( -1 ),
     mnListLevel( -1 ),
-    mnOutlineLevel( -1 )
+    mnOutlineLevel( -1 ),
+    mnNumId( -1 )
 {
 }
 


More information about the Libreoffice-commits mailing list