[Libreoffice] [PATCH] Convert tools/list.hxx usage to std::list

Jonathan Callen en.abcd at gmail.com
Tue Feb 1 10:57:26 PST 2011


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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Convert-tools-list.hxx-usage-to-std-list.patch
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110201/25af76c2/attachment.txt>
-------------- 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/25af76c2/attachment-0001.pgp>


More information about the LibreOffice mailing list