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

Eike Rathke erack at redhat.com
Fri Dec 11 07:32:38 PST 2015


 sc/qa/unit/ucalc_formula.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 0e40e1e3243d57fdf67c54d7c5b69e77fe7d03ce
Author: Eike Rathke <erack at redhat.com>
Date:   Fri Dec 11 15:45:52 2015 +0100

    silence -Werror=strict-overflow
    
    error: assuming signed overflow does not occur when assuming that
    (X + c) < X is always false [-Werror=strict-overflow]
         if ( rAddress.Row() < Row() )
    
    Change-Id: Ia643491657680fffcaacae4a474af479b9a07e35

diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index c42df7d..a2322a2 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -1588,7 +1588,7 @@ void Test::testFormulaRefUpdateRange()
 
     // Insert 2 rows in the middle to shift bottom reference down and make it
     // sticky.
-    m_pDoc->InsertRow( ScRange( aPos, ScAddress(MAXCOL,aPos.Row()+1,1)));
+    m_pDoc->InsertRow( ScRange( 0, aPos.Row(), 1, MAXCOL, aPos.Row()+1, 1));
 
     // A3:A18 must not result in #REF! anywhere.
     bool bCheck = true;
@@ -1685,9 +1685,9 @@ void Test::testFormulaRefUpdateRange()
     aPos.IncRow();
 
     // Insert 4 rows in the middle.
-    m_pDoc->InsertRow( ScRange( aPos, ScAddress(MAXCOL,aPos.Row()+3,1)));
+    m_pDoc->InsertRow( ScRange( 0, aPos.Row(), 1, MAXCOL, aPos.Row()+3, 1));
     // Delete 2 rows in the middle.
-    m_pDoc->DeleteRow( ScRange( aPos, ScAddress(MAXCOL,aPos.Row()+1,1)));
+    m_pDoc->DeleteRow( ScRange( 0, aPos.Row(), 1, MAXCOL, aPos.Row()+1, 1));
 
     // References in A2:A17 must still be the same.
     bCheck = true;


More information about the Libreoffice-commits mailing list