We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 335ecd6 commit 21e1478Copy full SHA for 21e1478
smartnet.cc
@@ -386,10 +386,10 @@ float parse_message(string s) {
386
if (rx->timeout() > 5.0) {
387
388
389
- for(std::vector<Talkgroup *>::iterator it = active_tg.begin(); it != active_tg.end(); ++it) {
390
- Talkgroup *tg = (Talkgroup *) *it;
+ for(std::vector<Talkgroup *>::iterator tg_it = active_tg.begin(); tg_it != active_tg.end(); ++tg_it) {
+ Talkgroup *tg = (Talkgroup *) *tg_it;
391
if (tg->number == address) {
392
- active_tg.erase(it);
+ active_tg.erase(tg_it);
393
break;
394
}
395
0 commit comments