[Libreoffice] [PATCH] Use STL find() in SvxNumberFormatShell

Maciej Rumianowski maciej.rumianowski at gmail.com
Mon Aug 8 16:32:40 PDT 2011


Hi Eike,
Dnia 2011-08-07, nie o godzinie 21:31 +0200, Eike Rathke pisze:
> 
> I suggest
> 
> ::std::vector<sal_uInt32>::iterator GetAdded_Impl( size_t nKey );
> 
> with logically the content of IsAdded_Impl() but using ::std::find()
> instead of the awkward loop and returning the position's iterator that
> can be used in RemoveFormat(), plus
> 
> bool IsAdded_Impl( size_t nKey )
> {
>     return GetAdded_Impl( nKey) != aAddList.end();
> }
> 
> for all other places that need only a bool to remain the same. 

As promised I have done this :)

Best,
    Maciej


More information about the LibreOffice mailing list