Fix all - 2 cppcheck performance hints

This commit is contained in:
heckflosse
2016-07-06 13:04:24 +02:00
parent a991d53bf3
commit c8779c04f5
43 changed files with 114 additions and 146 deletions

View File

@@ -222,7 +222,7 @@ void History::procParamsChanged (ProcParams* params, ProcEvent ev, Glib::ustring
// remove all rows after the selection
if (iter) {
iter++;
++iter;
while (iter) {
iter = historyModel->erase (iter);
@@ -356,7 +356,7 @@ void History::redo ()
Gtk::TreeModel::iterator iter = selection->get_selected();
if (iter) {
iter++;
++iter;
if (iter != historyModel->children().end()) {
selection->select (iter);