diff options
Diffstat (limited to 'src/guichan/widgets/window.cpp')
-rw-r--r-- | src/guichan/widgets/window.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/guichan/widgets/window.cpp b/src/guichan/widgets/window.cpp index c7ed8a69e..1a2279811 100644 --- a/src/guichan/widgets/window.cpp +++ b/src/guichan/widgets/window.cpp @@ -189,10 +189,9 @@ namespace gcn void Window::resizeToContent() { - WidgetListConstIterator it; - int w = 0, h = 0; - for (it = mWidgets.begin(); it != mWidgets.end(); ++ it) + for (WidgetListConstIterator it = mWidgets.begin(); + it != mWidgets.end(); ++ it) { if ((*it)->getX() + (*it)->getWidth() > w) w = (*it)->getX() + (*it)->getWidth(); |