aboutsummaryrefslogtreecommitdiffstats
path: root/src/RemoteControl.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-20 22:09:21 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-20 22:09:21 +0100
commit64105cd84307c091e3dd2bea2727edf6bdf58ed6 (patch)
tree4722e8e75b9fe859aa6e53697df612a1e05a5693 /src/RemoteControl.cpp
parent3f094996520fbf006a567873bc9da4d1b430345f (diff)
downloaddabmod-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.cpp6
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());