https://bugs.freedesktop.org/show_bug.cgi?id=38834
--- Comment #3 from Lubos Lunak <[email protected]> --- This is most probably not doable without a macro. Since rtl_uString allocates the string as a part of itself, the extra space would need to be allocated as well for each literal, with the string data inside it, but even inline functions, templates and whatnot don't seem to do. With a macro it's doable with something along the lines of #define OUStringLiteral( str ) \ ( \ ([]() -> OUString { static const rtl_uString_sized< sizeof( str ) > data = { SAL_STRING_STATIC_FLAG|1, sizeof( str ) - 1, u"" str }; return OUString( &data ); })() \ ) but that pretty much means putting RTL_CONSTASCII_USTRINGPARAM back everywhere :(. That's kinda lame, after all the work to remove it, and it would be good to first check if the uglification is actually worth the gain. -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
