From 64105cd84307c091e3dd2bea2727edf6bdf58ed6 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 20 Jan 2014 22:09:21 +0100 Subject: fix some errors seen by cppcheck --- src/RemoteControl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/RemoteControl.cpp') 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::iterator it = cohort_.begin(); it != cohort_.end(); it++) { + for (list::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 > params = get_parameter_descriptions_(cmd[1]); - for (list< vector >::iterator it = params.begin(); it != params.end(); it++) { + for (list< vector >::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 > r = get_param_list_values_(cmd[1]); - for (list< vector >::iterator it = r.begin(); it != r.end(); it++) { + for (list< vector >::iterator it = r.begin(); it != r.end(); ++it) { ss << (*it)[0] << ": " << (*it)[1] << endl; } reply(socket, ss.str()); -- cgit v1.2.3