Kaydet (Commit) 55a50961 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

test constness

Change-Id: I74523d0264f2fe78353c8f61d98295c65cd23ee1
üst 2277558d
...@@ -1323,6 +1323,12 @@ void SwDocTest::testIntrusiveRing() ...@@ -1323,6 +1323,12 @@ void SwDocTest::testIntrusiveRing()
CPPUNIT_ASSERT(pRing); CPPUNIT_ASSERT(pRing);
//pRing->debug(); //pRing->debug();
} }
const TestRing* pConstRing = &aRing1;
BOOST_FOREACH(const TestRing& r, pConstRing->rangeRing()) // this should fail without r being const
{
const TestRing* pRing = &r;
CPPUNIT_ASSERT(pRing);
}
} }
void SwDocTest::setUp() void SwDocTest::setUp()
......
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