diff options
author | Stijn Buys <ingar@osirion.org> | 2015-02-08 21:49:03 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2015-02-08 21:49:03 +0000 |
commit | ea4dd98b1a32c14b0a61027bdacfb95c261cd3dc (patch) | |
tree | a303dc06e4a6707d3a3969dff8a9b6a182575b37 /src/ui | |
parent | 924c366a6ae1747f8cd75403d9028a1a07fe8bb3 (diff) |
Minor iterator corrections.
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/listview.cc | 6 |
1 files 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<Widget *>(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<Widget *>(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<Widget *>(listview_scrollbar)) { (*it)->set_width(width()); } |