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


On Fri, May 30, 2014 at 10:58:33AM +0200, Stephan Bergmann wrote:
On 05/30/2014 09:27 AM, Stephan Bergmann wrote:
On 05/29/2014 12:48 PM, Julien Nabet wrote:
On 29/05/2014 12:31, Tor Lillqvist wrote:

Check the semantics of OUString::compareToAscii(). It returns zero on
equality, like strcmp()

Should have begun with this, thank you both of you.

And to avoid asking the same question a second time, I added a
comment by quoting Tor,

...would arguably be even better to instead make the implicit conversion
to bool explicit via

  pBegin->Name.compareToAscii( "JavaDriverClass" ) != 0 ...

...or, of course, even better yet,

  pBegin->Name != "JavaDriverClass" ...

Yes, Julien, this one is IMHO worth doing. It makes the code that much
more readable :)

-- 
Lionel

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.