Ticket #2217: extended_type_info_files2.patch

File extended_type_info_files2.patch, 1.0 KB (added by Ryan Mulder <rjmyst3@…>, 14 years ago)
  • 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            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

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