Apache OpenOffice (AOO) Bugzilla – Issue 14860
return type mismatch - return by value assigned to reference
Last modified: 2003-06-20 14:32:30 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 refernce 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 the following lines of code and if necessary fix them so that the return by value is properly handled. Thanks eventattacher/source/eventattacher.cxx @@ -925,7 reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM( "/" IMPLNAME "/UNO/SERVICES") ))); (fixme?) Sequence< OUString > & rSNL = ::comp_EventAttacher::EventAttacherImpl::getSupportedServiceNames_Static(); const OUString * pArray = rSNL.getConstArray(); for ( sal_Int32 nPos = rSNL.getLength(); nPos--; )
set prio
As this is not my code can you please specify the complete path so I can assign this issue to the correct person. eventattacher is not a CVS module.
Hi, Sorry about that after cvs aliasing it looks like its own module. Here is was the CVS Repository says: [kbhend@base1 CVS]$ cat Repository util/eventattacher Hope that helps. Kevin
hro@ab: Please verify if the component implemented by module util/eventattacher is really used by OOo. Just change the definition of rSNL in line 928 to a simple variable instead of a reference.
Done for cws ooo11beta2
This revision 1.3.40.2 prevents the build on gcc-3.3 sparc linux but it builds ok if i reinstate to 1.3.40.1 eventattacher.cxx Checking DLL ../unxlngs.pro/lib/check_libevtatt.so ...: ERROR: ../unxlngs.pro/li b/check_libevtatt.so: undefined symbol: _ZTIN4cppu11OWeakObjectE dmake: Error code 1, while making '../unxlngs.pro/lib/libevtatt.so'
sorry, i was wrong - revision 1.3.40.2 is OK for me - (i was confused by changing -frtti to -fno-rtti at the same time)
retarget.
Talked to MH, retargeting was done accidentally. Fix is checked in both for src641 and srx645 -> close