On 28.09.2011 00:02, Neil Leathers wrote:
I need to know how the correct way to convert from OUString to String.
I know this is a not desired but in order to roll in the changes
gradually it is necessary to do conversion back to deal with areas that
haven't been move to the new string classes.
Neil Leathers
hi Neil,
this is very easy: if you #include <tools/string.hxx> (which you already
have if there's a String somewhere), then the OUString can be implicitly
converted to String via a constructor, and also in the other direction via
a conversion operator; so you don't need to do anything really :)
regards,
michael
Context
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.