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

Caolán McNamara caolanm at redhat.com
Sun Apr 16 13:33:59 UTC 2017


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

New commits:
commit 14757281729c723b5527e7efd5c8e3e3bcda686e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Apr 16 14:29:36 2017 +0100

    coverity#1405157 Unchecked return value
    
    Change-Id: I6feb9004da5ca674533631b42a9e268ca7f1e7f7

diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index 4fb2b544fc1c..bea87de78d54 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -2288,7 +2288,8 @@ void Test::testFormulaRefUpdateMoveUndo2()
 
     // Drag A1:B1 into A2:B2 thereby overwriting the old A2:B2 content.
     ScDocFunc& rFunc = getDocShell().GetDocFunc();
-    rFunc.MoveBlock(ScRange(0,0,0,1,0,0), ScAddress(0,1,0), true, true, false, true);
+    bool bMoved = rFunc.MoveBlock(ScRange(0,0,0,1,0,0), ScAddress(0,1,0), true, true, false, true);
+    CPPUNIT_ASSERT(bMoved);
 
     std::vector<std::vector<const char*>> aCheckAfter = {
         { nullptr, nullptr,    "10",     "3" },


More information about the Libreoffice-commits mailing list