diff options
author | Eike Rathke <erack@redhat.com> | 2015-12-11 15:45:52 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-12-11 16:31:03 +0100 |
commit | 0e40e1e3243d57fdf67c54d7c5b69e77fe7d03ce (patch) | |
tree | d199d99b32f248288ef0d64b23009c11428904c9 /sc | |
parent | 576c7562ecf3d6d707c78d80852907c4a014178f (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
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/ucalc_formula.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx index c42df7d58052..a2322a238623 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; |