[Libreoffice] [PATCH V2] convert SdCustomShow from tools/list to vector

Ivan Timofeev timofeev.i.s at gmail.com
Tue Jan 31 09:31:11 PST 2012


31.01.2012 21:12, Noel Power пишет:
> 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?


More information about the LibreOffice mailing list