Browse Source

Use prefix ++ operator for non-primitive type to avoid keeping a copy of the previous value around

tags/v1.4.0
Nils 5 years ago
parent
commit
98290ce057
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/nsmd.cpp

+ 1
- 1
src/nsmd.cpp View File

@@ -598,7 +598,7 @@ number_of_reponsive_clients ( void )
*/

int responsive = 0;
for ( std::list<Client*>::const_iterator i = client.begin(); i != client.end(); i++ )
for ( std::list<Client*>::const_iterator i = client.begin(); i != client.end(); ++i )
{
//Optimisation: Clients that never launched (e.g. file not found) will be checked many times/seconds here. We skip them by counting them
if ( (*i)->active || (*i)->launch_error )


Loading…
Cancel
Save