summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-29 15:42:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-29 16:41:33 +0000
commitec92ace51d624d520fa3d828680f7298e742a30c (patch)
treeb2ab4ea03b8ff05eac3940eb72c794b8d3a8300e /sc
parent5dc14ccd0ae364e86401554acec663eac68fc6a4 (diff)
coverity#1078468 Unchecked return value
Change-Id: I00f0f401500ae89612932d1ce67a8754498e64d5
Diffstat (limited to 'sc')
-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 ee36e37c12f3..da136b1f88d3 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -3945,8 +3945,9 @@ void Test::testSearchCells()
SCTAB nTab = 0;
ScRangeList aMatchedRanges;
OUString aUndoStr;
- m_pDoc->SearchAndReplace(aItem, nCol, nRow, nTab, aMarkData, aMatchedRanges, aUndoStr);
+ bool bSuccess = m_pDoc->SearchAndReplace(aItem, nCol, nRow, nTab, aMarkData, aMatchedRanges, aUndoStr);
+ CPPUNIT_ASSERT_MESSAGE("Search And Replace should succeed", bSuccess);
CPPUNIT_ASSERT_MESSAGE("There should be exactly 3 matching cells.", aMatchedRanges.size() == 3);
ScAddress aHit(0,0,0);
CPPUNIT_ASSERT_MESSAGE("A1 should be inside the matched range.", aMatchedRanges.In(aHit));