summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-01 03:36:23 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-02 00:33:19 +0100
commit0e6221e51f8572552021873aa4d6624365607ede (patch)
treeae0b30a4426abcfc842194aa796e2f46a44e4332 /sw/qa
parent4a5928ee4ca55d22a0fa122886ecc7d6a55e9247 (diff)
some more iteration
Change-Id: I5ca9b79b2992b8499beec04ebe86d82ae14b0ee2
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/core/uwriter.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx
index 0a38d79ebd67..b0751c719281 100644
--- a/sw/qa/core/uwriter.cxx
+++ b/sw/qa/core/uwriter.cxx
@@ -10,6 +10,7 @@
#include <sal/config.h>
#include <test/bootstrapfixture.hxx>
+#include <boost/foreach.hpp>
#include <rtl/strbuf.hxx>
#include <osl/file.hxx>
@@ -1308,6 +1309,13 @@ void SwDocTest::testIntrusiveRing()
CPPUNIT_ASSERT_EQUAL(aRing4.GetPrev(), static_cast<Ring*>(&aRing3));
CPPUNIT_ASSERT_EQUAL(aRing5.GetPrev(), static_cast<Ring*>(&aRing4));
CPPUNIT_ASSERT_EQUAL(aRing1.GetPrev(), static_cast<Ring*>(&aRing5));
+ //std::pair<Ring::iterator, Ring::iterator> foo();
+ //BOOST_FOREACH(Ring& r, foo)
+ for(Ring::iterator it = aRing1.beginRing(); it != aRing1.endRing(); ++it)
+ {
+ TestRing* pRing = dynamic_cast<TestRing*>(&(*it));
+ pRing->debug();
+ }
}
void SwDocTest::setUp()