diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-01-20 22:09:21 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-01-20 22:09:21 +0100 |
commit | 64105cd84307c091e3dd2bea2727edf6bdf58ed6 (patch) | |
tree | 4722e8e75b9fe859aa6e53697df612a1e05a5693 /src/RemoteControl.cpp | |
parent | 3f094996520fbf006a567873bc9da4d1b430345f (diff) | |
download | dabmod-64105cd84307c091e3dd2bea2727edf6bdf58ed6.tar.gz dabmod-64105cd84307c091e3dd2bea2727edf6bdf58ed6.tar.bz2 dabmod-64105cd84307c091e3dd2bea2727edf6bdf58ed6.zip |
fix some errors seen by cppcheck
Diffstat (limited to 'src/RemoteControl.cpp')
-rw-r--r-- | src/RemoteControl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/RemoteControl.cpp b/src/RemoteControl.cpp index bd401f4..67c1d13 100644 --- a/src/RemoteControl.cpp +++ b/src/RemoteControl.cpp @@ -124,7 +124,7 @@ RemoteControllerTelnet::dispatch_command(tcp::socket& socket, string command) stringstream ss; if (cmd.size() == 1) { - for (list<RemoteControllable*>::iterator it = cohort_.begin(); it != cohort_.end(); it++) { + for (list<RemoteControllable*>::iterator it = cohort_.begin(); it != cohort_.end(); ++it) { ss << (*it)->get_rc_name() << " "; } } @@ -133,7 +133,7 @@ RemoteControllerTelnet::dispatch_command(tcp::socket& socket, string command) stringstream ss; list< vector<string> > params = get_parameter_descriptions_(cmd[1]); - for (list< vector<string> >::iterator it = params.begin(); it != params.end(); it++) { + for (list< vector<string> >::iterator it = params.begin(); it != params.end(); ++it) { ss << (*it)[0] << " : " << (*it)[1] << endl; } reply(socket, ss.str()); @@ -153,7 +153,7 @@ RemoteControllerTelnet::dispatch_command(tcp::socket& socket, string command) try { stringstream ss; list< vector<string> > r = get_param_list_values_(cmd[1]); - for (list< vector<string> >::iterator it = r.begin(); it != r.end(); it++) { + for (list< vector<string> >::iterator it = r.begin(); it != r.end(); ++it) { ss << (*it)[0] << ": " << (*it)[1] << endl; } reply(socket, ss.str()); |