[PATCH] convert more SV_DECL_PTRARR in SW module

Noel Grandin noel at peralex.com
Thu May 24 01:37:17 PDT 2012


Hi

These patches convert various places to use boost::ptr_vector or 
std::vector.

They were all compiled with "make debug=t" and they all pass "make check"

Note that I've now converted all of the "easy" ones in the SW module, so 
I'm going to move on to the SC module.

In particular, I've found PTRARR_SORT_DEL to be hard to convert. Mostly 
because the logical conversion is to use std::set, but a lot of the code 
stores indexes into the PTRARR, which doesn't work with a std::set.

Regards, Noel Grandin


Disclaimer: http://www.peralex.com/disclaimer.html


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Convert-SV_DECL_PTRARR-SwOLENodes-to-std-vector.patch
Type: application/mbox
Size: 2846 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120524/2319a32b/attachment-0016.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Convert-SV_DECL_PTRARR_DEL-SwNumRuleTbl-to-std-vecto.patch
Type: application/mbox
Size: 23901 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120524/2319a32b/attachment-0017.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-Convert-SV_DECL_PTRARR_DEL-SwTOXTypes-to-std-vector.patch
Type: application/mbox
Size: 6258 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120524/2319a32b/attachment-0018.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-Convert-SV_DECL_PTRARR_DEL-SwFldTypes-to-std-vector.patch
Type: application/mbox
Size: 22945 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120524/2319a32b/attachment-0019.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-Convert-SV_DECL_PTRARR_DEL-SwPageDescs-to-std-vector.patch
Type: application/mbox
Size: 9981 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120524/2319a32b/attachment-0020.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-Convert-SV_DECL_PTRARR_DEL-SwDSParamArr-to-boost-ptr.patch
Type: application/mbox
Size: 6930 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120524/2319a32b/attachment-0021.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-Convert-SV_DECL_PTRARR_DEL-SwLabRecs-to-std-vector.patch
Type: application/mbox
Size: 4311 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120524/2319a32b/attachment-0022.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013-Convert-V_DECL_PTRARR_DEL-SwFlySaveArr-to-std-vector.patch
Type: application/mbox
Size: 8206 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120524/2319a32b/attachment-0023.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0014-Convert-SV_DECL_PTRARR-SwMovedBoxes-to-std-vector.patch
Type: application/mbox
Size: 4022 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120524/2319a32b/attachment-0024.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015-Inline-SV_DECL_PTRARR_DEL-SwCacheObjArr-into-a-std-v.patch
Type: application/mbox
Size: 7385 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120524/2319a32b/attachment-0025.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0016-Convert-SV_DECL_PTRARR_DEL-SwpHstry-to-std-vector.patch
Type: application/mbox
Size: 7669 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120524/2319a32b/attachment-0026.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Convert-SV_DECL_PTRARR-SwSortKeys-to-std-vector.patch
Type: application/mbox
Size: 4842 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120524/2319a32b/attachment-0027.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Convert-SV_DECL_PTRARR-SwSections-to-std-vector.patch
Type: application/mbox
Size: 7700 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120524/2319a32b/attachment-0028.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Convert-SV_DECL_PTRARR_DEL-SwRubyList-to-boost-ptr_v.patch
Type: application/mbox
Size: 5396 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120524/2319a32b/attachment-0029.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Convert-SV_DECL_PTRARR_SORT_VISIBILITY-SwPosFlyFrms-.patch
Type: application/mbox
Size: 6839 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120524/2319a32b/attachment-0030.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Convert-SV_DECL_PTRARR_DEL-SwGetINetAttrs-to-boost-p.patch
Type: application/mbox
Size: 4301 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120524/2319a32b/attachment-0031.bin>


More information about the LibreOffice mailing list