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



Noel Power-3 wrote

...
I can commit and push on master of course but I'd like first your opinion
about this.

please commit looks like the correct fix to me ( on a side note can 
anyone remember what ( #if _SOLAR__PRIVATE ) is all about,  I can't see 
any reason for it in the context of this code in anycase :-/ and would 
be tempted to delete it. And btw thanks, always a pleasure to come back 
from vacation to see something from the to do list fixed by someone else 
:-))) thanks again!!

Noel

No problem, I'll do this as soon as get back home (so after day work :-) ).

BTW, I noticed that const_iterators were used. As a beginner, I don't
understand how const_iterators can work in this file whereas most of the
time the object referenced is modified, eg :
    248     for( IDEWindowTable::const_iterator it =
aIDEWindowTable.begin(); it != aIDEWindowTable.end(); ++it )
    249     {
    250         // no store; does already happen when the BasicManagers are
destroyed
    251         delete it->second;
    252     }

    338     for( std::vector<IDEBaseWindow*>::const_iterator it =
aDeleteVec.begin(); it != aDeleteVec.end(); ++it )
    339     {
    340         IDEBaseWindow* pWin = *it;
    341         pWin->StoreData();

But perhaps I misunderstood something (which wouldn't be surprising :-))

Julien

--
View this message in context: 
http://nabble.documentfoundation.org/PATCH-fix-proposed-for-fdo-48368-tp3910905p3914140.html
Sent from the Dev mailing list archive at Nabble.com.

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.