string parameters
Enrico Weigelt
enrico.weigelt at vnc.biz
Thu Apr 5 04:01:12 PDT 2012
Hi folks,
while diving through the code, i've found tons of calls looking like that:
foo(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("bar")),..)
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:
foo(rtl::OUString("bar"),...)
Is there an easy way for making just
foo("bar",...)
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 ?
cu
--
Mit freundlichen Grüßen / Kind regards
Enrico Weigelt
VNC - Virtual Network Consult GmbH
Development
Äußere Bayreuther Str. 55, D - 90409 Nürnberg
Tel: +49 911 72303-30
Fax: +49 911 72303-50
enrico.weigelt at vnc.biz; www.vnc.de
More information about the LibreOffice
mailing list