[Libreoffice-commits] core.git: sw/inc
Bjoern Michaelsen
bjoern.michaelsen at canonical.com
Wed Dec 3 01:23:10 PST 2014
sw/inc/ring.hxx | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
New commits:
commit 4c83120e2aee5f2b9cf34ced2888f75dc6b3ce6f
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date: Wed Dec 3 10:21:55 2014 +0100
update docs for C++11 iteration
Change-Id: Iab8b2e3d9e85d715de6ca973fd1c541c837bf6f3
diff --git a/sw/inc/ring.hxx b/sw/inc/ring.hxx
index 174a5bb..ea2c994 100644
--- a/sw/inc/ring.hxx
+++ b/sw/inc/ring.hxx
@@ -147,13 +147,9 @@ namespace sw
/**
* iterator access
* @code
- * for(Ring<SwPaM>::iterator ppRing = pPaM->beginRing(); ppRing != pPaM->endRing(); ++ppRing)
- * do_stuff(*ppRing);
+ * for(SwPaM& rCurrentPaM : pPaM->GetRingContainer())
+ * do_stuff(rCurrentPaM); // this gets called on every SwPaM in the same ring as pPaM
* @endcode
- * @TODO: unfortunately we cant name these STL-conforming, as some derived classes
- * also derive from other STL containers. This should be fixed though.
- * That should allow this to be used directly with C++11s for( : )
- * iteration statement.
*/
iterator begin();
iterator end();
More information about the Libreoffice-commits
mailing list