[Libreoffice] [PATCH] Removed SvStringsSortDtor
Daisuke Nishino
niboshi000 at gmail.com
Wed Nov 9 05:24:56 PST 2011
Caolán,
Thank you for your comments.
Here is the patch.
Cheers,
On Wed, Nov 9, 2011 at 12:01 AM, Caolán McNamara <caolanm at redhat.com> wrote:
> On Tue, 2011-11-08 at 22:43 +0900, Daisuke Nishino wrote:
> > Hi all,
> >
> > I removed some uses of SvStringsSortDtor, which is listed in
> > http://wiki.documentfoundation.org/Easy_Hacks#Easy_Hacks
>
> Looks good (Initially I thought there was a few vectors with potential
> dups in them before I scrolled down a bit to see the sort, unique,
> erase :-)). So pushed, thanks for these.
>
> > Looking at htmlexp.cxx:1320, pSrcArr is used to lookup for an index of
> > a string, and then the index is applied to pDstArr.
> > In my understanding indices of two arrays are unrelated, because
> > arrays are sorted by their respective contents.
>
> Yeah, it's puzzling. Original code doesn't look right at all.
>
> > I guess what is intended here is mapping of strings, from pSrcArr to
> > pDstArr (with incorrect implementation).
>
> The intent seems fairly clear anyway, so it looks like a std::map
> identifier->filename is what's wanted.
>
> C.
>
>
--
Daisuke Nishino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20111109/f46e0e34/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Removed-SvStringsSortDtor.core.patch
Type: application/octet-stream
Size: 9762 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20111109/f46e0e34/attachment.obj>
More information about the LibreOffice
mailing list