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.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/RemoteControl.h') diff --git a/src/RemoteControl.h b/src/RemoteControl.h index 79b330f..6ac07a5 100644 --- a/src/RemoteControl.h +++ b/src/RemoteControl.h @@ -95,7 +95,7 @@ class RemoteControllable { virtual list get_supported_parameters() { cerr << "get_sup_par" << parameters_.size() << endl; list parameterlist; - for (list< vector >::iterator it = parameters_.begin(); it != parameters_.end(); it++) { + for (list< vector >::iterator it = parameters_.begin(); it != parameters_.end(); ++it) { parameterlist.push_back((*it)[0]); } return parameterlist; @@ -162,7 +162,7 @@ class RemoteControllerTelnet : public BaseRemoteController { } RemoteControllable* get_controllable_(string name) { - for (list::iterator it = cohort_.begin(); it != cohort_.end(); it++) { + for (list::iterator it = cohort_.begin(); it != cohort_.end(); ++it) { if ((*it)->get_rc_name() == name) { return *it; @@ -187,7 +187,7 @@ class RemoteControllerTelnet : public BaseRemoteController { list< vector > allparams; list params = controllable->get_supported_parameters(); cerr << "# of supported parameters " << params.size() << endl; - for (list::iterator it = params.begin(); it != params.end(); it++) { + for (list::iterator it = params.begin(); it != params.end(); ++it) { vector item; item.push_back(*it); item.push_back(controllable->get_parameter(*it)); -- cgit v1.2.3