<span class="gD">Caolán,<br>
<br>
Thank you for your comments.<br>
Here is the patch.<br>
<br>
Cheers,</span><br><br><div class="gmail_quote">On Wed, Nov 9, 2011 at 12:01 AM, Caolán McNamara <span dir="ltr"><<a href="mailto:caolanm@redhat.com">caolanm@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Tue, 2011-11-08 at 22:43 +0900, Daisuke Nishino wrote:<br>
> Hi all,<br>
><br>
> I removed some uses of SvStringsSortDtor, which is listed in<br>
> <a href="http://wiki.documentfoundation.org/Easy_Hacks#Easy_Hacks" target="_blank">http://wiki.documentfoundation.org/Easy_Hacks#Easy_Hacks</a><br>
<br>
</div>Looks good (Initially I thought there was a few vectors with potential<br>
dups in them before I scrolled down a bit to see the sort, unique,<br>
erase :-)). So pushed, thanks for these.<br>
<div class="im"><br>
> Looking at htmlexp.cxx:1320, pSrcArr is used to lookup for an index of<br>
> a string, and then the index is applied to pDstArr.<br>
> In my understanding indices of two arrays are unrelated, because<br>
> arrays are sorted by their respective contents.<br>
<br>
</div>Yeah, it's puzzling. Original code doesn't look right at all.<br>
<div class="im"><br>
> I guess what is intended here is mapping of strings, from pSrcArr to<br>
> pDstArr (with incorrect implementation).<br>
<br>
</div>The intent seems fairly clear anyway, so it looks like a std::map<br>
identifier->filename is what's wanted.<br>
<span class="HOEnZb"><font color="#888888"><br>
C.<br>
<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Daisuke Nishino<br>