summaryrefslogtreecommitdiff
path: root/src/gui/widgets/windowcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-30 22:53:27 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-30 22:53:27 +0300
commit5cbd0d2cb7086fda592c00dbc3b07d06af95f080 (patch)
treed36b4ac344f31f34311c7cb7a9a637ed48356e3e /src/gui/widgets/windowcontainer.cpp
parent4210163dae7d6266923ab11f78b631173c9533e3 (diff)
downloadmv-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.gz
mv-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.bz2
mv-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.xz
mv-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.zip
Add const to more classes.
Diffstat (limited to 'src/gui/widgets/windowcontainer.cpp')
-rw-r--r--src/gui/widgets/windowcontainer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/windowcontainer.cpp b/src/gui/widgets/windowcontainer.cpp
index 2e40d88d2..41aed2ba3 100644
--- a/src/gui/widgets/windowcontainer.cpp
+++ b/src/gui/widgets/windowcontainer.cpp
@@ -38,19 +38,19 @@ void WindowContainer::logic()
gcn::Container::logic();
}
-void WindowContainer::scheduleDelete(gcn::Widget *widget)
+void WindowContainer::scheduleDelete(gcn::Widget *const widget)
{
if (widget)
mDeathList.push_back(widget);
}
-void WindowContainer::adjustAfterResize(int oldScreenWidth,
- int oldScreenHeight)
+void WindowContainer::adjustAfterResize(const int oldScreenWidth,
+ const int oldScreenHeight)
{
for (WidgetListIterator i = mWidgets.begin(), i_end = mWidgets.end();
i != i_end; ++i)
{
- if (Window *window = dynamic_cast<Window*>(*i))
+ if (Window *const window = dynamic_cast<Window*>(*i))
window->adjustPositionAfterResize(oldScreenWidth, oldScreenHeight);
}
}