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@vnc.biz; www.vnc.de
Context
- string parameters · Enrico Weigelt
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.