string parameters

Enrico Weigelt enrico.weigelt at
Thu Apr 5 04:01:12 PDT 2012

Hi folks,

while diving through the code, i've found tons of calls looking like that:


IIRC, the RTL_CONSTASCII_USTRINGPARAM() macro call isn't needed anymore,
as rtl::OUString now has a proper constructor for literals. But that still
leaves the call like this:


Is there an easy way for making just 


work correctly (without tons of overloaded methods, of course) ?

For std::string, the compiler can do it automatically. Is this some
builtin compiler-magic, or could such thing also be defined for
rtl::OUString ?

Mit freundlichen Grüßen / Kind regards 

Enrico Weigelt 
VNC - Virtual Network Consult GmbH 

Äußere Bayreuther Str. 55, D - 90409 Nürnberg 
Tel: +49 911 72303-30 
Fax: +49 911 72303-50 

enrico.weigelt at; 

More information about the LibreOffice mailing list