summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-12-11 15:45:52 +0100
committerEike Rathke <erack@redhat.com>2015-12-11 16:48:31 +0100
commit208c247edbef4449b8614dd3709e627edc546e46 (patch)
treef872ff1b457c612280ae1b81241f8ce9c0594043
parenteaed8fe33bb677f668571771fa814b02ee1d6cca (diff)
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 (cherry picked from commit 0e40e1e3243d57fdf67c54d7c5b69e77fe7d03ce)
-rw-r--r--sc/qa/unit/ucalc_formula.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index ce58c8886332..ac203e1c3c6c 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -1584,7 +1584,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;
@@ -1681,9 +1681,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;