diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-02 11:11:55 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-02 11:15:03 +0100 |
commit | 55a509616614cc4e50acbb9f257f7334db6667f9 (patch) | |
tree | 0b1df8cb6eb6aedd3c5d8cb50bb3424398c33f01 /sw/qa | |
parent | 2277558d01c168feec10c6340f919e7847ab2dbe (diff) |
test constness
Change-Id: I74523d0264f2fe78353c8f61d98295c65cd23ee1
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/core/uwriter.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx index f6675426a37e..8fd104c2e385 100644 --- a/sw/qa/core/uwriter.cxx +++ b/sw/qa/core/uwriter.cxx @@ -1323,6 +1323,12 @@ void SwDocTest::testIntrusiveRing() CPPUNIT_ASSERT(pRing); //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() |