[Libreoffice] [PUSHED] Re: [PATCH] Easy Hacks : Use RTL_CONSTASCII_USTRINGPARAM macro bis

Caolán McNamara caolanm at redhat.com
Sun Oct 31 11:42:04 PDT 2010


On Sat, 2010-10-30 at 22:08 +0100, Caolán McNamara wrote:
> old: OUString sFoo(OUString::createFromAscii(bBool ? "true" : "false));
> 
> new: OUString sFoo(RTL_CONSTASCII_USTRINGPARAM(bBool ? "true" :
> "false));
> 
> would be expanded as...
> 
> OUString sFoo(bBool ? "true" : "false, ((sal_Int32)(sizeof(bBool ?
> "true" : "false)-1));
> 
> I think this is fine, but I'm a little bit wary of making that change

Resolved this to my satisfaction, fixed now, thanks :-)

C.



More information about the LibreOffice mailing list