[Libreoffice] [PATCH] Convert tools/list.hxx usage to std::list
Jonathan Callen
abcd at gentoo.org
Tue Feb 1 19:12:38 PST 2011
On 02/01/2011 01:57 PM, Jonathan Callen wrote:
> The attached patch replaces usage of LinkList (declared as
> DECLARE_LIST(LinkList, Link*) with std::list<Link>.
>
> I used list<Link> instead of list<Link*> because 1) the elements of the
> list were only ever used from within the .cxx file declaring the list
> itself and 2) each element was already allocated on addition and
> deallocated on removal, so I just made that more explicit by letting
> std::list handle it.
>
> As with all my patches, this is LGPLv3+/MPL.
>
This version of the patch uses BOOST_FOREACH to simplify a few of the loops.
--
Jonathan Callen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Convert-tools-list.hxx-usage-to-std-list-try-2.patch
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110201/86a2a507/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110201/86a2a507/attachment.pgp>
More information about the LibreOffice
mailing list