Hello Mathias,
If you changed "const String& GetX()" to "String GetX()" no errors should happen at compile time. There's only one possible problem: if the returned reference was stored as reference somewhere. This code now would keep a reference to a temporary object and surely will crash later when it uses the reference. I'm not sure if any of our compilers will create a compiler warning for this, if we are lucky one of them does. This could be another good reason to switch to "::rtl::OUString GetX()" as IMHO assigning an ::rtl::OUString to a String& should create a compile time error on all platforms. Andreas, what do you think?
see my posting before .-)
Ciao, Mathias
Ciao Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]