From ea4dd98b1a32c14b0a61027bdacfb95c261cd3dc Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 8 Feb 2015 21:49:03 +0000 Subject: Minor iterator corrections. --- src/ui/listview.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/listview.cc b/src/ui/listview.cc index c72cd59..aee4afd 100644 --- a/src/ui/listview.cc +++ b/src/ui/listview.cc @@ -35,7 +35,7 @@ void ListView::set_scroll(float scroll) // calculate maximal scroll size float nb_items = 0; - for (Children::iterator it = children().begin(); it != children().end(); it++) { + for (Children::iterator it = children().begin(); it != children().end(); ++it) { if ((*it) != static_cast(listview_scrollbar)) { nb_items += 1.0f; } @@ -68,7 +68,7 @@ void ListView::resize() float nb_items = 0; // reposition all children within the container - for (Children::iterator it = children().begin(); it != children().end(); it++) { + for (Children::iterator it = children().begin(); it != children().end(); ++it) { if ((*it) != static_cast(listview_scrollbar)) { (*it)->set_width(width() - listview_scrollbar->width()); @@ -98,7 +98,7 @@ void ListView::resize() listview_scrollbar->set_value(listview_scroll); listview_scrollbar->show(); } else { - for (Children::iterator it = children().begin(); it != children().end(); it++) { + for (Children::iterator it = children().begin(); it != children().end(); ++it) { if ((*it) != static_cast(listview_scrollbar)) { (*it)->set_width(width()); } -- cgit v1.2.3