Kaydet (Commit) 4fb7331d authored tarafından Caolán McNamara's avatar Caolán McNamara

CID#708773 silence coverity side-effect in assert

Change-Id: I7045932e57c7f4e8cdef73fc37ff8de9e7ae9c58
üst 95c77651
...@@ -1183,9 +1183,9 @@ void Test::testCellBroadcaster() ...@@ -1183,9 +1183,9 @@ void Test::testCellBroadcaster()
// Ensure that the formula cells show correct values, and the referenced // Ensure that the formula cells show correct values, and the referenced
// cells have broadcasters. // cells have broadcasters.
val = 0.0; 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)); pBC = m_pDoc->GetBroadcaster(ScAddress(0,i,0));
CPPUNIT_ASSERT_MESSAGE("Broadcast should exist here.", pBC); CPPUNIT_ASSERT_MESSAGE("Broadcast should exist here.", pBC);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment