Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi Christina,

The problem you are facing is due to the return type of the method:
XubString& then OUString& .
To fix this, you need to return a reference to a non locally created
OUString.
I have successfully used a static OUString in the past for these cases.
Can you get access to the variable aEmptyOUStr in sw/inc/swtypes.hxx from
your piece of code?

Cheers,
Jean-Noel


2013/3/16 "Chr. Roßmanith" <ChrRossmanith@web.de>

Hi,

during my current Xub -> OUString conversion I end up with "error:
returning reference to temporary [-Werror]" when doing the following
modification:

-        return ImplGetSVEmptyStr();
+       return OUString();

in vcl/source/window/toolbox2.cxx

What is the preferred way to solve this problem. Change return type,
create something similar to ImplGetSVEmptyStr()?

Christina
______________________________**_________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.**org <LibreOffice@lists.freedesktop.org>
http://lists.freedesktop.org/**mailman/listinfo/libreoffice<http://lists.freedesktop.org/mailman/listinfo/libreoffice>


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.