Pre-increment (rather than post-increment) STL iterators in for loops… (#1692)

* Pre-increment (rather than post-increment) STL iterators in for loops. #1594

* Fix a goof. #1594
This commit is contained in:
jmpenn
2024-04-18 11:41:35 -05:00
committed by GitHub
parent e515144252
commit 5065d96a15
51 changed files with 118 additions and 118 deletions

View File

@ -12,7 +12,7 @@ int Trick::VariableServer::freeze_init() {
long long next_call_tics = TRICK_MAX_LONG_LONG ;
pthread_mutex_lock(&map_mutex) ;
for ( auto it = var_server_sessions.begin() ; it != var_server_sessions.end() ; it++ ) {
for ( auto it = var_server_sessions.begin() ; it != var_server_sessions.end() ; ++it ) {
VariableServerSession * session = (*it).second ;
session->freeze_init() ;
if ( session->get_freeze_next_tics() < next_call_tics ) {