aboutsummaryrefslogtreecommitdiffstats
path: root/src/RemoteControl.h
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.h
parent3f094996520fbf006a567873bc9da4d1b430345f (diff)
downloaddabmod-64105cd84307c091e3dd2bea2727edf6bdf58ed6.tar.gz
dabmod-64105cd84307c091e3dd2bea2727edf6bdf58ed6.tar.bz2
dabmod-64105cd84307c091e3dd2bea2727edf6bdf58ed6.zip
fix some errors seen by cppcheck
Diffstat (limited to 'src/RemoteControl.h')
-rw-r--r--src/RemoteControl.h6
1 files changed, 3 insertions, 3 deletions
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<string> get_supported_parameters() {
cerr << "get_sup_par" << parameters_.size() << endl;
list<string> parameterlist;
- for (list< vector<string> >::iterator it = parameters_.begin(); it != parameters_.end(); it++) {
+ for (list< vector<string> >::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<RemoteControllable*>::iterator it = cohort_.begin(); it != cohort_.end(); it++) {
+ for (list<RemoteControllable*>::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<string> > allparams;
list<string> params = controllable->get_supported_parameters();
cerr << "# of supported parameters " << params.size() << endl;
- for (list<string>::iterator it = params.begin(); it != params.end(); it++) {
+ for (list<string>::iterator it = params.begin(); it != params.end(); ++it) {
vector<string> item;
item.push_back(*it);
item.push_back(controllable->get_parameter(*it));