Commits

Daniel Rentz [dr]  committed 4d1dc8f

dr81: #i117446# gcc compiler warning

  • Participants
  • Parent commits 86b7c2e

Comments (0)

Files changed (2)

File o3tl/inc/o3tl/interval_map.hxx

     // compare data entries with MappedComp, not with MappedType::operator==
     if( rMap1.size() != rMap2.size() )
         return false;
-    MappedComp aMappedComp;
-    for( typename interval_map< IntType, MappedType, MappedComp, AllocType >::const_iterator aIt1 = rMap1.begin(), aEnd1 = rMap1.end(), aIt2 = rMap2.begin(), aEnd2 = rMap2.end(); aIt1 != aEnd1; ++aIt1, ++aIt2 )
+    MappedComp aMappedComp = rMap1.mapped_comp();
+    for( typename interval_map< IntType, MappedType, MappedComp, AllocType >::const_iterator aIt1 = rMap1.begin(), aEnd1 = rMap1.end(), aIt2 = rMap2.begin(); aIt1 != aEnd1; ++aIt1, ++aIt2 )
         if( (aIt1->first != aIt2->first) || !aMappedComp( aIt1->second, aIt2->second ) )
             return false;
     return true;

File o3tl/inc/o3tl/interval_set.hxx

 {
     if( rSet1.size() != rSet2.size() )
         return false;
-    for( typename interval_set< IntType, AllocType >::const_iterator aIt1 = rSet1.begin(), aEnd1 = rSet1.end(), aIt2 = rSet2.begin(), aEnd2 = rSet2.end(); aIt1 != aEnd1; ++aIt1, ++aIt2 )
+    for( typename interval_set< IntType, AllocType >::const_iterator aIt1 = rSet1.begin(), aEnd1 = rSet1.end(), aIt2 = rSet2.begin(); aIt1 != aEnd1; ++aIt1, ++aIt2 )
         if( *aIt1 != *aIt2 )
             return false;
     return true;