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

Caolán McNamara caolanm at redhat.com
Fri Oct 6 12:04:21 UTC 2017


 sc/source/ui/view/viewdata.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 798c18881d4db1930e71c471324b9048715439b5
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Oct 6 09:28:01 2017 +0100

    coverity#1418967 Uninitialized scalar variable
    
    and
    
    coverity#1418960 Uninitialized scalar variable
    
    Change-Id: I2f96b3824fca585a22d7a02a974c371ebaf57bde
    Reviewed-on: https://gerrit.libreoffice.org/43187
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index bb8389d8a203..9f56c5c4a4f1 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -482,6 +482,8 @@ void ScViewDataTable::ReadUserDataSequence(const uno::Sequence <beans::PropertyV
 }
 
 ScViewData::ScViewData( ScDocShell* pDocSh, ScTabViewShell* pViewSh ) :
+        nPPTX(0.0),
+        nPPTY(0.0),
         mpMarkData(new ScMarkData),
         pDocShell   ( pDocSh ),
         pDoc        ( nullptr ),
@@ -573,6 +575,8 @@ ScViewData::ScViewData( ScDocShell* pDocSh, ScTabViewShell* pViewSh ) :
 }
 
 ScViewData::ScViewData( const ScViewData& rViewData ) :
+        nPPTX(0.0),
+        nPPTY(0.0),
         maTabData( rViewData.maTabData ),
         mpMarkData(new ScMarkData(*rViewData.mpMarkData)),
         pDocShell   ( rViewData.pDocShell ),


More information about the Libreoffice-commits mailing list