[Libreoffice-commits] core.git: 9 commits - chart2/source filter/source sc/source sd/source sw/source tools/source unotools/source

Norbert Thiebaud nthiebaud at gmail.com
Wed Jan 29 21:37:22 PST 2014


 chart2/source/tools/ErrorBar.cxx                  |    2 +
 filter/source/graphic/GraphicExportDialog.cxx     |    7 ++-
 filter/source/graphic/GraphicExportFilter.cxx     |    7 ++-
 sc/source/filter/xml/XMLTrackedChangesContext.cxx |   41 +++++++++++-----------
 sc/source/ui/view/hdrcont.cxx                     |    6 ++-
 sd/source/core/PageListWatcher.cxx                |    7 ++-
 sw/source/core/text/porfld.cxx                    |   34 +++++++++++-------
 tools/source/rc/resmgr.cxx                        |    1 
 unotools/source/config/syslocaleoptions.cxx       |    1 
 9 files changed, 64 insertions(+), 42 deletions(-)

New commits:
commit 0d8679da48ca7b9cdde55954b58c468c16091941
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Wed Jan 29 23:32:20 2014 -0600

    coverity#984169 : Uninitialized scalar field
    
    Change-Id: Ie304c66b7a3abb163428fb481c3cca3de2b4379b

diff --git a/unotools/source/config/syslocaleoptions.cxx b/unotools/source/config/syslocaleoptions.cxx
index 4126b26..9538943 100644
--- a/unotools/source/config/syslocaleoptions.cxx
+++ b/unotools/source/config/syslocaleoptions.cxx
@@ -144,6 +144,7 @@ SvtSysLocaleOptions_Impl::SvtSysLocaleOptions_Impl()
     , m_aRealLocale( LANGUAGE_SYSTEM)
     , m_aRealUILocale( LANGUAGE_SYSTEM)
     , m_bDecimalSeparator( true )
+    , m_bIgnoreLanguageChange( false)
     , m_bROLocale(CFG_READONLY_DEFAULT)
     , m_bROUILocale(CFG_READONLY_DEFAULT)
     , m_bROCurrency(CFG_READONLY_DEFAULT)
commit 4eb97e07ccfb740e0421e34c23703468d87d16fd
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Wed Jan 29 23:29:34 2014 -0600

    coverity#989727 : Uninitialized scalar field
    
    Change-Id: I84477ff97e726e15e1ff1a3241557483c43392c8

diff --git a/sc/source/ui/view/hdrcont.cxx b/sc/source/ui/view/hdrcont.cxx
index d536780..aedfc2a 100644
--- a/sc/source/ui/view/hdrcont.cxx
+++ b/sc/source/ui/view/hdrcont.cxx
@@ -44,7 +44,7 @@
 #define SC_HDRPAINT_COUNT       7
 
 ScHeaderControl::ScHeaderControl( Window* pParent, SelectionEngine* pSelectionEngine,
-                                    SCCOLROW nNewSize, bool bNewVertical ) :
+                                  SCCOLROW nNewSize, bool bNewVertical ) :
             Window      ( pParent ),
             pSelEngine  ( pSelectionEngine ),
             bVertical   ( bNewVertical ),
@@ -53,6 +53,10 @@ ScHeaderControl::ScHeaderControl( Window* pParent, SelectionEngine* pSelectionEn
             nMarkEnd    ( 0 ),
             bMarkRange  ( false ),
             bDragging   ( false ),
+            nDragNo     ( 0 ),
+            nDragStart  ( 0 ),
+            nDragPos    ( 0 ),
+            bDragMoved  ( false ),
             bIgnoreMove ( false )
 {
     // --- RTL --- no default mirroring for this window, the spreadsheet itself
commit 72edfcdc909528155f78530edb1c7a5bc1d24699
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Wed Jan 29 23:22:38 2014 -0600

    coverity#1000862 : Uninitialized scalar field
    
    Change-Id: Ife99bf91d569e8ee8cac41980112101c0e3e6127

diff --git a/filter/source/graphic/GraphicExportDialog.cxx b/filter/source/graphic/GraphicExportDialog.cxx
index 3250445..ace8e75 100644
--- a/filter/source/graphic/GraphicExportDialog.cxx
+++ b/filter/source/graphic/GraphicExportDialog.cxx
@@ -36,9 +36,10 @@ using namespace css::uno;
 using namespace css::beans;
 using namespace css::lang;
 
-GraphicExportDialog::GraphicExportDialog( const Reference< XComponentContext >& rxContext ) :
-    mxContext           ( rxContext ),
-    mbExportSelection   ( false )
+GraphicExportDialog::GraphicExportDialog( const Reference< XComponentContext >& rxContext )
+    : mxContext( rxContext )
+    , meFieldUnit(FUNIT_NONE)
+    , mbExportSelection( false )
 {
 }
 
commit 75a617a72a66cb4eff43e10f13cf53d0109cdf4b
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Wed Jan 29 23:18:24 2014 -0600

    coverity#1000863 : Uninitialized scalar field
    
    Change-Id: I2f518a76641de0e75b75306f351caa11712b14ac

diff --git a/filter/source/graphic/GraphicExportFilter.cxx b/filter/source/graphic/GraphicExportFilter.cxx
index 287f9b7..18db6b6 100644
--- a/filter/source/graphic/GraphicExportFilter.cxx
+++ b/filter/source/graphic/GraphicExportFilter.cxx
@@ -23,8 +23,11 @@
 #include <svl/outstrm.hxx>
 #include <svtools/DocumentToGraphicRenderer.hxx>
 
-GraphicExportFilter::GraphicExportFilter( const Reference<XComponentContext>& rxContext ) :
-    mxContext( rxContext )
+GraphicExportFilter::GraphicExportFilter( const Reference<XComponentContext>& rxContext )
+    : mxContext( rxContext )
+    , mExportSelection(false)
+    , mTargetWidth(0)
+    , mTargetHeight(0)
 {}
 
 GraphicExportFilter::~GraphicExportFilter()
commit 7a56caa4bdcdb1db1d50801b4f37aa2220105147
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Wed Jan 29 23:14:45 2014 -0600

    coverity#1000865 : Uninitialized scalar field
    
    Change-Id: I215cb372df9a3b52985e8d378bbb980c3d6eb597

diff --git a/sc/source/filter/xml/XMLTrackedChangesContext.cxx b/sc/source/filter/xml/XMLTrackedChangesContext.cxx
index bbe03bc..a369c9a 100644
--- a/sc/source/filter/xml/XMLTrackedChangesContext.cxx
+++ b/sc/source/filter/xml/XMLTrackedChangesContext.cxx
@@ -1103,25 +1103,26 @@ void ScXMLChangeTextPContext::EndElement()
         pChangeCellContext->SetText(sText.makeStringAndClear());
 }
 
-ScXMLChangeCellContext::ScXMLChangeCellContext(  ScXMLImport& rImport,
-                                              sal_uInt16 nPrfx,
-                                                   const OUString& rLName,
-                                              const uno::Reference<xml::sax::XAttributeList>& xAttrList,
-                                            ScCellValue& rOldCell, OUString& rAddress,
-                                            OUString& rFormula, OUString& rFormulaNmsp,
-                                            formula::FormulaGrammar::Grammar& rGrammar,
-                                            OUString& rTempInputString, double& fDateTimeValue, sal_uInt16& nType,
-                                            sal_uInt8& nMatrixFlag, sal_Int32& nMatrixCols, sal_Int32& nMatrixRows ) :
-    SvXMLImportContext( rImport, nPrfx, rLName ),
-    mrOldCell(rOldCell),
-    rInputString(rTempInputString),
-    pEditTextObj(NULL),
-    rDateTimeValue(fDateTimeValue),
-    rType(nType),
-    bEmpty(sal_True),
-    bFirstParagraph(sal_True),
-    bString(sal_True),
-    bFormula(false)
+ScXMLChangeCellContext::ScXMLChangeCellContext( ScXMLImport& rImport,
+                                                sal_uInt16 nPrfx,
+                                                const OUString& rLName,
+                                                const uno::Reference<xml::sax::XAttributeList>& xAttrList,
+                                                ScCellValue& rOldCell, OUString& rAddress,
+                                                OUString& rFormula, OUString& rFormulaNmsp,
+                                                formula::FormulaGrammar::Grammar& rGrammar,
+                                                OUString& rTempInputString, double& fDateTimeValue, sal_uInt16& nType,
+                                                sal_uInt8& nMatrixFlag, sal_Int32& nMatrixCols, sal_Int32& nMatrixRows )
+    : SvXMLImportContext( rImport, nPrfx, rLName )
+    , mrOldCell(rOldCell)
+    , rInputString(rTempInputString)
+    , pEditTextObj(NULL)
+    , rDateTimeValue(fDateTimeValue)
+    , fValue(0.0)
+    , rType(nType)
+    , bEmpty(sal_True)
+    , bFirstParagraph(sal_True)
+    , bString(sal_True)
+    , bFormula(false)
 {
     sal_Bool bIsMatrix(false);
     sal_Bool bIsCoveredMatrix(false);
@@ -1131,7 +1132,7 @@ ScXMLChangeCellContext::ScXMLChangeCellContext(  ScXMLImport& rImport,
         const OUString& sAttrName(xAttrList->getNameByIndex( i ));
         OUString aLocalName;
         sal_uInt16 nPrefix(GetScImport().GetNamespaceMap().GetKeyByAttrName(
-                                            sAttrName, &aLocalName ));
+                                   sAttrName, &aLocalName ));
         const OUString& sValue(xAttrList->getValueByIndex( i ));
 
         if (nPrefix == XML_NAMESPACE_TABLE)
commit 05bd05a65ffd8247595ee95758d9e3132d9fa677
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Wed Jan 29 23:08:16 2014 -0600

    coverity#1000866 : Uninitialized scalar field
    
    Change-Id: I0b460fb2964d363d0d0ae8f95cdd590eadd2bff3

diff --git a/sd/source/core/PageListWatcher.cxx b/sd/source/core/PageListWatcher.cxx
index cd4f9ff..a154da1 100644
--- a/sd/source/core/PageListWatcher.cxx
+++ b/sd/source/core/PageListWatcher.cxx
@@ -69,9 +69,10 @@ void ImpPageListWatcher::ImpRecreateSortedPageListOnDemand()
 }
 
 ImpPageListWatcher::ImpPageListWatcher(const SdrModel& rModel)
-:   mrModel(rModel),
-    mpHandoutPage(0L),
-    mbPageListValid(sal_False)
+    : mrModel(rModel)
+    , mpHandoutPage(0L)
+    , mbPageListValid(sal_False)
+    , mnVisiblePageCount(0)
 {
 }
 
commit b77bb8dd173f71d3148d8237e71a5dbc3340765f
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Wed Jan 29 00:11:14 2014 -0600

    coverity#100869-708452 : Uninitialized scalar field
    
    Change-Id: I62fdff624360839ce16ed183c61c6dae73afebec

diff --git a/sw/source/core/text/porfld.cxx b/sw/source/core/text/porfld.cxx
index c86b8a2..b3fa0e8 100644
--- a/sw/source/core/text/porfld.cxx
+++ b/sw/source/core/text/porfld.cxx
@@ -74,26 +74,34 @@ void SwFldPortion::TakeNextOffset( const SwFldPortion* pFld )
 }
 
 SwFldPortion::SwFldPortion( const OUString &rExpand, SwFont *pFont, bool bPlaceHold )
-    : aExpand(rExpand), pFnt(pFont), nNextOffset(0), nNextScriptChg(COMPLETE_STRING), nViewWidth(0),
-      bFollow( sal_False ), bHasFollow( sal_False ), bPlaceHolder( bPlaceHold )
+    : aExpand(rExpand), pFnt(pFont), nNextOffset(0), nNextScriptChg(COMPLETE_STRING), nViewWidth(0)
+    , bFollow( sal_False ), bLeft( sal_False), bHide( sal_False)
+    , bCenter (sal_False), bHasFollow( sal_False )
+    , bAnimated( sal_False), bNoPaint( sal_False)
+    , bReplace( sal_False), bPlaceHolder( bPlaceHold )
     , m_bNoLength( false )
+    , m_nAttrFldType(0)
 {
     SetWhichPor( POR_FLD );
-    m_nAttrFldType = 0;
 }
 
 SwFldPortion::SwFldPortion( const SwFldPortion& rFld )
-    : SwExpandPortion( rFld ),
-      aExpand( rFld.GetExp() ),
-      nNextOffset( rFld.GetNextOffset() ),
-      nNextScriptChg( rFld.GetNextScriptChg() ),
-      bFollow( rFld.IsFollow() ),
-      bLeft( rFld.IsLeft() ),
-      bHide( rFld.IsHide() ),
-      bCenter( rFld.IsCenter() ),
-      bHasFollow( rFld.HasFollow() ),
-      bPlaceHolder( rFld.bPlaceHolder )
+    : SwExpandPortion( rFld )
+    , aExpand( rFld.GetExp() )
+    , nNextOffset( rFld.GetNextOffset() )
+    , nNextScriptChg( rFld.GetNextScriptChg() )
+    , nViewWidth( rFld.nViewWidth )
+    , bFollow( rFld.IsFollow() )
+    , bLeft( rFld.IsLeft() )
+    , bHide( rFld.IsHide() )
+    , bCenter( rFld.IsCenter() )
+    , bHasFollow( rFld.HasFollow() )
+    , bAnimated ( rFld.bAnimated )
+    , bNoPaint( rFld.bNoPaint)
+    , bReplace( rFld.bReplace )
+    , bPlaceHolder( rFld.bPlaceHolder )
     , m_bNoLength( rFld.m_bNoLength )
+    , m_nAttrFldType( rFld.m_nAttrFldType)
 {
     if ( rFld.HasFont() )
         pFnt = new SwFont( *rFld.GetFont() );
commit 84f313ba4a1815b5a26da64de6f6a3aac78aef3e
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Tue Jan 28 23:46:58 2014 -0600

    coverity#100870 : Uninitialized scalar field
    
    Change-Id: Ica1af6017aedf94ad4daa92352691675bf6378fd

diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx
index 6896bd8..7c260ed 100644
--- a/tools/source/rc/resmgr.cxx
+++ b/tools/source/rc/resmgr.cxx
@@ -421,6 +421,7 @@ InternalResMgr::InternalResMgr( const OUString& rFileURL,
                                 const OUString& rResName,
                                 const LanguageTag& rLocale )
     : pContent( NULL )
+    , nOffCorrection( 0 )
     , pStringBlock( NULL )
     , pStm( NULL )
     , bEqual2Content( true )
commit f3612719e00ee63b5d68258b99f3c61a85c27e27
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Tue Jan 28 23:44:01 2014 -0600

    coverity#1019405-04 : Uninitialized scalar field
    
    Change-Id: Ic784f3f1e581583b79cc26aa399f7b99dfb16481

diff --git a/chart2/source/tools/ErrorBar.cxx b/chart2/source/tools/ErrorBar.cxx
index 277fb86..d5c90e8 100644
--- a/chart2/source/tools/ErrorBar.cxx
+++ b/chart2/source/tools/ErrorBar.cxx
@@ -94,6 +94,7 @@ ErrorBar::ErrorBar(
     mfPositiveError(0),
     mfNegativeError(0),
     mfWeight(1),
+    meStyle(com::sun::star::chart::ErrorBarStyle::NONE),
     m_xContext( xContext ),
     m_xModifyEventForwarder( ModifyListenerHelper::createModifyEventForwarder())
 {}
@@ -107,6 +108,7 @@ ErrorBar::ErrorBar( const ErrorBar & rOther ) :
     mfPositiveError(rOther.mfPositiveError),
     mfNegativeError(rOther.mfNegativeError),
     mfWeight(rOther.mfWeight),
+    meStyle(rOther.meStyle),
     m_xContext( rOther.m_xContext ),
     m_xModifyEventForwarder( ModifyListenerHelper::createModifyEventForwarder())
 {


More information about the Libreoffice-commits mailing list