diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-03 10:21:55 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-03 10:22:31 +0100 |
commit | 4c83120e2aee5f2b9cf34ced2888f75dc6b3ce6f (patch) | |
tree | c387659866d8b110522b50c7c84253f158e0eb31 /sw/inc/ring.hxx | |
parent | 0e2927ed2cffdc718085cadce3cc41e34cd6a04f (diff) |
update docs for C++11 iteration
Change-Id: Iab8b2e3d9e85d715de6ca973fd1c541c837bf6f3
Diffstat (limited to 'sw/inc/ring.hxx')
-rw-r--r-- | sw/inc/ring.hxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sw/inc/ring.hxx b/sw/inc/ring.hxx index 174a5bb1458c..ea2c99414de6 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(); |