[Libreoffice] [PATCH] Replaced tools/list with std::vector in funcdesc.hxx / funcdesc.cxx

Soeren Moeller soerenmoeller2001 at gmail.com
Fri Jan 28 10:57:53 PST 2011


Hi

In the attached patches (0001 is the real patch, 0002 contains three
comments missing in 0001) we have replaced use of tools/list by use of
std::vector in ScFunctionMgr and ScFunctionCategory (in
sc/inc/funcdesc.hxx and sc/source/core/funcdesc.cxx). We choose
vector, as there is done random access to the lists, while they are
only modified once (at creation). We changed the behaviour of
ScFunctionMgr slightly, as Get() now no longer resets the iterators
for First() and Next(), as this is quite counter intuitive. The patch
builds fine, and the behaviour of scalc seems unchanged.

The patch is joint work with Thies Pierdola, who is marked as author
in the patch file.

Regards
Sören Möller
(LGPLv3+/MPL for this and future patches)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Replaced-tools-list-with-std-vector-in-ScFunctionMgr.patch
Type: text/x-patch
Size: 9146 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110128/1d849229/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Comments-for-private-variables-in-ScFunctionMgr.patch
Type: text/x-patch
Size: 1160 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110128/1d849229/attachment-0001.bin>


More information about the LibreOffice mailing list