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

Stephan Bergmann sbergman at redhat.com
Tue Jan 19 01:52:54 PST 2016


 sc/source/core/data/table5.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 811d1f0a0428a293d829d2c3d90bf3e8bbe1be90
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jan 19 10:51:03 2016 +0100

    -Werror=maybe-uninitialized (GCC 6)
    
    ...so take the same "= -1" approach in ScTable::CopyColHidden as was alreday
    taken in ScTable::CopyRowHidden
    
    Change-Id: I0155965f142bd33706a303fb154d46776e40ec62

diff --git a/sc/source/core/data/table5.cxx b/sc/source/core/data/table5.cxx
index eb18a2c..8ba078c 100644
--- a/sc/source/core/data/table5.cxx
+++ b/sc/source/core/data/table5.cxx
@@ -620,7 +620,7 @@ void ScTable::CopyColHidden(ScTable& rTable, SCCOL nStartCol, SCCOL nEndCol)
     SCCOL nCol = nStartCol;
     while (nCol <= nEndCol)
     {
-        SCCOL nLastCol;
+        SCCOL nLastCol = -1;
         bool bHidden = rTable.ColHidden(nCol, nullptr, &nLastCol);
         if (nLastCol > nEndCol)
             nLastCol = nEndCol;


More information about the Libreoffice-commits mailing list