summaryrefslogtreecommitdiff
path: root/src/gui/widgets/vertcontainer.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/vertcontainer.cpp
parent4210163dae7d6266923ab11f78b631173c9533e3 (diff)
downloadmanaverse-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.gz
manaverse-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.bz2
manaverse-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.xz
manaverse-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.zip
Add const to more classes.
Diffstat (limited to 'src/gui/widgets/vertcontainer.cpp')
-rw-r--r--src/gui/widgets/vertcontainer.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/widgets/vertcontainer.cpp b/src/gui/widgets/vertcontainer.cpp
index 0eb59c8f9..46ea86c0e 100644
--- a/src/gui/widgets/vertcontainer.cpp
+++ b/src/gui/widgets/vertcontainer.cpp
@@ -23,8 +23,8 @@
#include "debug.h"
-VertContainer::VertContainer(int verticalItemSize, bool resizable,
- int leftSpacing):
+VertContainer::VertContainer(const int verticalItemSize, const bool resizable,
+ const int leftSpacing):
mVerticalItemSize(verticalItemSize),
mCount(0),
mNextY(0),
@@ -35,12 +35,13 @@ VertContainer::VertContainer(int verticalItemSize, bool resizable,
addWidgetListener(this);
}
-void VertContainer::add1(gcn::Widget *widget, int spacing)
+void VertContainer::add1(gcn::Widget *const widget, const int spacing)
{
add2(widget, mResizable, spacing);
}
-void VertContainer::add2(gcn::Widget *widget, bool resizable, int spacing)
+void VertContainer::add2(gcn::Widget *const widget, const bool resizable,
+ const int spacing)
{
if (!widget)
return;