Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/widget.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widget.cc b/src/ui/widget.cc
index 1270997..a7c667e 100644
--- a/src/ui/widget.cc
+++ b/src/ui/widget.cc
@@ -255,7 +255,7 @@ Widget *Widget::find_input_focus()
if (!visible() || !widget_focus)
return 0;
- for (Children::const_reverse_iterator rit = widget_children.rbegin(); rit != widget_children.rend(); ++rit) {
+ for (Children::reverse_iterator rit = widget_children.rbegin(); rit != widget_children.rend(); ++rit) {
Widget *w = (*rit);
if (w->visible() && w->widget_focus) {
Widget *f = w->find_input_focus();
@@ -275,7 +275,7 @@ Widget *Widget::find_mouse_focus(const math::Vector2f & pos)
return 0;
// reverse-iterate children
- for (Children::const_reverse_iterator rit = widget_children.rbegin(); rit != widget_children.rend(); ++rit) {
+ for (Children::reverse_iterator rit = widget_children.rbegin(); rit != widget_children.rend(); ++rit) {
Widget *w = (*rit);
if (w->visible()) {
Widget *f = w->find_mouse_focus(pos - w->location());