Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hey,



Here are the lines:
    178 void SwBlink::FrmDelete( const SwRootFrm* pRoot )
    179 {
    180     for( SwBlinkList::iterator it = aList.begin(); it !=
aList.end(); )
    181     {
    182         if( pRoot == (*it).GetRootFrm() )
    183             aList.erase( it );
    184         else
    185             ++it;
    186     }
    187 }

I must recognize, I don't understand how can it work above all if we go  in
the "if" since there's no increment.

Any idea?

It can't. Line 183 is supposed to be:

aList.erase(it++);

Regards,
Markus

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.