summaryrefslogtreecommitdiff
path: root/src/gui/widgets/layouthelper.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/layouthelper.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/layouthelper.cpp')
-rw-r--r--src/gui/widgets/layouthelper.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/layouthelper.cpp b/src/gui/widgets/layouthelper.cpp
index 2b79609b9..9e93f6de5 100644
--- a/src/gui/widgets/layouthelper.cpp
+++ b/src/gui/widgets/layouthelper.cpp
@@ -24,7 +24,7 @@
#include "debug.h"
-LayoutHelper::LayoutHelper(gcn::Container *container):
+LayoutHelper::LayoutHelper(gcn::Container *const container) :
mContainer(container)
{
mContainer->addWidgetListener(this);
@@ -40,13 +40,14 @@ const Layout &LayoutHelper::getLayout() const
return mLayout;
}
-LayoutCell &LayoutHelper::place(int x, int y, gcn::Widget *wg, int w, int h)
+LayoutCell &LayoutHelper::place(const int x, const int y, gcn::Widget *const wg,
+ const int w, const int h)
{
mContainer->add(wg);
return mLayout.place(wg, x, y, w, h);
}
-ContainerPlacer LayoutHelper::getPlacer(int x, int y)
+ContainerPlacer LayoutHelper::getPlacer(const int x, const int y)
{
return ContainerPlacer(mContainer, &mLayout.at(x, y));
}