Apache OpenOffice (AOO) Bugzilla – Issue 17603
IRIX: MipsPro doesn't allow const_interator == iterator
Last modified: 2003-12-19 11:30:06 UTC
cc-1323 CC: ERROR File = /build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/bridges/source/jni_uno/jni_info.cxx, Line = 466 No operator "==" matches these operands. The operand types are: std::hash_map<rtl::OUString, jni_uno::JNI_type_info_holder, rtl::OUStringHash, std::equal_to<rtl::OUString>, std::allocator<jni_uno::JNI_type_info_holder>>::iterator == std::hash_map<rtl::OUString, jni_uno::JNI_type_info_holder, rtl::OUStringHash, std::equal_to<rtl::OUString>, std::allocator<jni_uno::JNI_type_info_holder>>::const_ite rator. if (m_type_map.end() == iFind) Changing it to iFind to an iterator (rather than const_interator) fixes this.
Here is the diff: Index: jni_info.cxx =================================================================== RCS file: /cvs/udk/bridges/source/jni_uno/jni_info.cxx,v retrieving revision 1.8 diff -u -r1.8 jni_info.cxx --- jni_info.cxx 23 Apr 2003 16:37:12 -0000 1.8 +++ jni_info.cxx 30 Jul 2003 03:50:39 -0000 @@ -435,7 +435,7 @@ *reinterpret_cast< OUString const * >( &td->pTypeName ); JNI_type_info const * info; ClearableMutexGuard guard( m_mutex ); - t_str2type::const_iterator iFind( m_type_map.find( uno_name ) ); + t_str2type::iterator iFind( m_type_map.find( uno_name ) ); if (m_type_map.end() == iFind) { guard.clear(); @@ -462,7 +462,7 @@ *reinterpret_cast< OUString const * >( &type->pTypeName ); JNI_type_info const * info; ClearableMutexGuard guard( m_mutex ); - t_str2type::const_iterator iFind( m_type_map.find( uno_name ) ); + t_str2type::iterator iFind( m_type_map.find( uno_name ) ); if (m_type_map.end() == iFind) { guard.clear(); @@ -489,7 +489,7 @@ JNI_type_info const * info; ClearableMutexGuard guard( m_mutex ); - t_str2type::const_iterator iFind( m_type_map.find( uno_name ) ); + t_str2type::iterator iFind( m_type_map.find( uno_name ) ); if (m_type_map.end() == iFind) { guard.clear();
More found in: comphelper/source/property/MasterPropertySetInfo.cxx comphelper/source/property/ChainablePropertySetInfo.cxx
set target milestone to 1.1.1
commited in ooo111fix1
I strongly disagree with these patches, which make the code worse. There are good reasons preferring a const_iterator over non-const iterator. Please choose another solution to workaround the IRIX MipsPro compiler problem, e.g. patch the stlport const_iterator typedef.
added to CC.
reopened.
revoked and set target to 1.1.2
.
mh->hr: was the last action to set target to 1.1.1 intentended, please provide addtional information.
closing ...