Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2015-02-08 21:49:03 +0000
committerStijn Buys <ingar@osirion.org>2015-02-08 21:49:03 +0000
commitea4dd98b1a32c14b0a61027bdacfb95c261cd3dc (patch)
treea303dc06e4a6707d3a3969dff8a9b6a182575b37
parent924c366a6ae1747f8cd75403d9028a1a07fe8bb3 (diff)
Minor iterator corrections.
-rw-r--r--src/ui/listview.cc6
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());
}