RTL_CONSTASCII_(U)STRINGPARAM officially obsolete

Tor Lillqvist tml at iki.fi
Wed Apr 4 22:43:10 PDT 2012


> if (foo.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("XXXXX")))
> if (foo.equals(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("XXXXX"))))
>
> can be written as
>
> if( foo == "XXXXX" )

This has to be the biggest improvement in OOo/LO codebase readability
ever! Incredibly nice!

--tml


More information about the LibreOffice mailing list