summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-07 12:56:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-07 12:56:05 +0100
commit4fb7331d83b73b975e730f534562252c7ace8937 (patch)
tree9e40ccc939f36a35a14edcec5a86b1c0a9ad35f5 /sc
parent95c7765107d4d668cfa0709dce8003bf3258ef66 (diff)
CID#708773 silence coverity side-effect in assert
Change-Id: I7045932e57c7f4e8cdef73fc37ff8de9e7ae9c58
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/ucalc.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index eb61b906b657..1a2bf71d3189 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -1183,9 +1183,9 @@ void Test::testCellBroadcaster()
// Ensure that the formula cells show correct values, and the referenced
// cells have broadcasters.
val = 0.0;
- for (SCROW i = 0; i < 20; ++i)
+ for (SCROW i = 0; i < 20; ++i, ++val)
{
- CPPUNIT_ASSERT_EQUAL(val++, m_pDoc->GetValue(ScAddress(1,i,0)));
+ CPPUNIT_ASSERT_EQUAL(val, m_pDoc->GetValue(ScAddress(1,i,0)));
pBC = m_pDoc->GetBroadcaster(ScAddress(0,i,0));
CPPUNIT_ASSERT_MESSAGE("Broadcast should exist here.", pBC);
}