XubString -> OUString question

"Chr. Roßmanith" ChrRossmanith at web.de
Sat Mar 16 12:27:35 PDT 2013


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


More information about the LibreOffice mailing list