summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-29 15:55:46 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-29 16:41:34 +0000
commit585000f4710379cf9d709ea0f1a23d7d029a22fb (patch)
tree1a83ce80d2b44dc0efc3697423f362f4a2c762ed /sc/qa
parentec92ace51d624d520fa3d828680f7298e742a30c (diff)
coverity#1078467 Unchecked return value
Change-Id: I432e913befcab08224ea56ae1c190d169d85e717
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/ucalc.cxx3
1 files changed, 2 insertions, 1 deletions
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);