diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-09-03 18:54:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-03 18:54:05 +0100 |
commit | d98355805e0c275ccdbdfb45f20592fa3621c4a5 (patch) | |
tree | 72ed02f79aefdbe10bd8d07b1f75af8bd7651a95 /sc | |
parent | 1b3980564f518a3bbc871307807eb151cd02ea1a (diff) |
coverity#1372442 Unchecked return value
Change-Id: I09c4500a66da8a53630e8701e1531a04e178eaf8
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/ucalc_sharedformula.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/qa/unit/ucalc_sharedformula.cxx b/sc/qa/unit/ucalc_sharedformula.cxx index 6a9a0000651f..d319717db96d 100644 --- a/sc/qa/unit/ucalc_sharedformula.cxx +++ b/sc/qa/unit/ucalc_sharedformula.cxx @@ -1479,7 +1479,8 @@ void Test::testSharedFormulaMoveBlock() CPPUNIT_ASSERT_EQUAL(5.0, m_pDoc->GetValue(ScAddress(1,4,0))); // Move A1:A2 to D2:D3. - rFunc.MoveBlock(ScRange(0,0,0,0,1,0), ScAddress(3,1,0), true, true, false, true); + bool 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. CPPUNIT_ASSERT_EQUAL(1.0, m_pDoc->GetValue(ScAddress(1,0,0))); |