Apache OpenOffice (AOO) Bugzilla – Issue 14867
return type mismatch - return by value assigned to reference
Last modified: 2013-02-24 21:18:39 UTC
gcc 3.3 now provides error messages when there are return type mismatches such as when a method returns an object by value that is assigned to a reference which is a bug since the reference points to a temporary variable created to hold the return by value. An occurrence of this type occurred here see ... (fixme?) Please evaluate that line and fix the code in question to prevent the bug if needed. sch/source/ui/unoidl/register.cxx @@ -95,7 RTL_CONSTASCII_USTRINGPARAM("/") ) + SchDocument_getImplementationName() + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/UNO/SERVICES") ) ); (fixme?)uno::Sequence< rtl::OUString > &rServices = SchDocument_getSupportedServiceNames(); for(i = 0; i < rServices.getLength(); i++ ) xNewKey->createKey( rServices.getConstArray()[i]);
reassigned and reset prio
"Priority 1: This priority is for issues that make it impossible to work with the version!" ->Martin: Why is it not possible to work with the Application? The wrong line was introduced in srx644m9s2, I have worked with the chart since then. Please set priorities according to the rules. ->Mikhail: I didn't know of the existence of register.cxx until now. What was it introduced for? I think the fix is obvious, but I resend this bug to you, because maybe you have a similar line in other applications.
reset prio to 2.
'register.cxx' is introduced to allow to register UNO services in chart object. It was required for creation of a document model implementation as UNO service. This feature was implemented for all applications, so this code was introduced in StarChart also, but it is not really used for now. The compiling problem in 'sch' was introduced from 'starmath' project by copy/paste. It is defenitly not correct to use reference there. The problem is fixed in both projects now.
Sending for closing.
verified.
close issue.