Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


The macro is there to calculate the size of the string at compile time, which is normally a useful optimisation.

But given how you are changing the code, that optimisation is no longer possible, at least not without pre-calculating it and storing it in another array, which I don't think is warranted in this case.

On 2013-04-16 16:44, Wols Lists wrote:
On 16/04/13 15:38, Noel Grandin wrote:
On 2013-04-16 16:16, Wols Lists wrote:
if( args[i].Name.matchIgnoreAsciiCaseAsciiL( keyword_list[j] ))
Surely this will work:

     if( args[i].Name.matchIgnoreAsciiCaseAsciiL( keyword_list[j],
strlen( keyword_list[j] )))

I'll have a play with that soon, it's just that that macro is presumably
there for some purpose, (plus the fact it converted one argument into 2
:-) so I was being my usual self and playing cautious. I'll see what
anybody else says, then try it.

Cheers,
Wol

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice



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



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.