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


Hi Ivan,

On Tuesday, 2012-01-31 21:31:11 +0400, Ivan Timofeev wrote:

should remove the first occurrence, care to fix ?

so the exact equivalent of

mpSdCustomShow->Remove(pPage->GetSdrPage())

will be:

SdCustomShow::PageVec::iterator it = std::find(
    mpSdCustomShow->PagesVector().begin(),
    mpSdCustomShow->PagesVector().end(),
    pPage->GetSdrPage());
if (it != mpSdCustomShow->PagesVector().end())
    mpSdCustomShow->PagesVector().erase(it);

right?

Looks corect. Seeing this it would make sense to reintroduce the
Remove() method that in the patch was merged with the Replace() method,
which otherwise I would had preferred got a comment in the header file
that it actually removed if the replacement was NULL ...

  Eike

-- 
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GnuPG key 0x293C05FD : 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Attachment: pgpaXNEgkszgb.pgp
Description: PGP signature


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.