From 585000f4710379cf9d709ea0f1a23d7d029a22fb Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 29 Jan 2014 15:55:46 +0000 Subject: coverity#1078467 Unchecked return value Change-Id: I432e913befcab08224ea56ae1c190d169d85e717 --- sc/qa/unit/ucalc.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index da136b1f88d3..8cdcb4d2258a 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -3443,7 +3443,8 @@ void Test::testCopyPaste() pLocal1 = m_pDoc->GetRangeName(1)->findByUpperName(OUString("LOCAL1")); CPPUNIT_ASSERT_MESSAGE("local range name 1 should be copied", pLocal1); ScRange aRangeLocal1; - pLocal1->IsValidReference(aRangeLocal1); + bool bIsValidRef = pLocal1->IsValidReference(aRangeLocal1); + CPPUNIT_ASSERT_MESSAGE("local range name 1 should be valid", bIsValidRef); CPPUNIT_ASSERT_MESSAGE("local range 1 should still point to Sheet1.A1",aRangeLocal1 == ScRange(0,0,0,0,0,0)); pLocal2 = m_pDoc->GetRangeName(1)->findByUpperName(OUString("LOCAL2")); CPPUNIT_ASSERT_MESSAGE("local2 should not be copied", pLocal2 == NULL); -- cgit