1
0
Fork 0

Reported by cppcheck: fix an incorrect usage of iterators

This commit is contained in:
Frederic Bouvier 2011-01-30 13:25:39 +01:00
parent 687be04678
commit a853af5b0e

View file

@ -610,7 +610,7 @@ wxRadarBg::update_aircraft()
diff = _elapsed_time - (*ground_echoes_iterator)->elapsed_time;
if( diff > _persistance) {
ground_echoes.erase(ground_echoes_iterator);
ground_echoes.erase(ground_echoes_iterator++);
} else {
// double test_brg = (*ground_echoes_iterator)->bearing;
// double bearing = test_brg * SG_DEGREES_TO_RADIANS;