Ticket #2217: extended_type_info_files.patch

File extended_type_info_files.patch, 1.0 KB (added by Brandon Kohn, 14 years ago)

Patches for extended_type_info_typeid.cpp and extended_type_info.cpp

  • extended_type_info.cpp

     
    9393    // remove entry in map which corresponds to this type
    9494    do{
    9595        if(this == *start){
    96             x.erase(start);
    97             break;
     96            start = x.erase(start);
     97        } else {
     98            ++start;
    9899        }
    99     }while(++start != end);
     100    }while(start != end);
    100101
    101102    m_key = NULL;
    102103}
  • extended_type_info_typeid.cpp

     
    8989    // remove entry in map which corresponds to this type
    9090    do{
    9191        if(this == *start){
    92             x.erase(start);
    93             break;
    94     }
    95     }while(++start != end);
     92            start = x.erase(start);
     93        } else {
     94            ++start;
     95        }
     96    }while(start != end);
    9697
    9798    m_ti = NULL;
    9899}