Automatic using ::rtl::OUString etc.

Stephan Bergmann sbergman at
Fri Apr 13 01:33:46 PDT 2012

On 04/13/2012 10:13 AM, Bjoern Michaelsen wrote:
> I tend to agree on all points. If something like that is essential, we could
> have something like a:
> salhelper/inc/rtl/stringhelper.hxx:
> #include<rtl/ustring.hxx>
> using ::rtl::OUString;
> using ::rtl::OStringToOUString;
> using ::rtl::OUStringToOString;
> and allow that to be used in .cxx only but not in .hxx.

Note that it would not hurt too much (at least concerning the published 
URE API) if that header happened to be included from other headers.

Somewhat similar to the standard header approach, where legacy <foo.h> 
wraps <foo> and injects its names into global namespace.


More information about the LibreOffice mailing list