summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-09-13 09:44:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-09-13 11:49:29 +0100
commit3a10baaf8faad1a615a53400a9a168144c6d6599 (patch)
tree04abb4e83ca2f6e28ead251d5d9d714bc4ab3bb5 /sc
parent780ac20278600e32fffd2d89a15fbeed86321179 (diff)
coverity#1372442 Unchecked return value
Change-Id: I2ff6c844e62ced35477f96a710a31cdd902f3505
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/ucalc_sharedformula.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/qa/unit/ucalc_sharedformula.cxx b/sc/qa/unit/ucalc_sharedformula.cxx
index d319717db96d..f75a7a1729ba 100644
--- a/sc/qa/unit/ucalc_sharedformula.cxx
+++ b/sc/qa/unit/ucalc_sharedformula.cxx
@@ -1426,7 +1426,8 @@ void Test::testSharedFormulaMoveBlock()
// Move A1:A3 to D1:D3.
ScDocFunc& rFunc = getDocShell().GetDocFunc();
- rFunc.MoveBlock(ScRange(0,0,0,0,2,0), ScAddress(3,0,0), true, true, false, true);
+ bool bMoved = rFunc.MoveBlock(ScRange(0,0,0,0,2,0), ScAddress(3,0,0), true, true, false, true);
+ CPPUNIT_ASSERT(bMoved);
// The result should stay the same.
CPPUNIT_ASSERT_EQUAL(1.0, m_pDoc->GetValue(ScAddress(1,0,0)));
@@ -1479,7 +1480,7 @@ void Test::testSharedFormulaMoveBlock()
CPPUNIT_ASSERT_EQUAL(5.0, m_pDoc->GetValue(ScAddress(1,4,0)));
// Move A1:A2 to D2:D3.
- bool bMoved = rFunc.MoveBlock(ScRange(0,0,0,0,1,0), ScAddress(3,1,0), true, true, false, true);
+ bMoved = rFunc.MoveBlock(ScRange(0,0,0,0,1,0), ScAddress(3,1,0), true, true, false, true);
CPPUNIT_ASSERT(bMoved);
// Check the formula values again. They should not change.