summaryrefslogtreecommitdiff
path: root/src/guichan/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-01 20:49:03 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-02 00:37:51 +0300
commit4df121e6dcdf53436f50ce81dd60096ce0138a2c (patch)
tree7cadc707bb49e4c148ba9c182075697a9643e20a /src/guichan/widgets
parented3410d7eb61593a2235ddba97ce257c85e405a6 (diff)
downloadmanaverse-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.gz
manaverse-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.bz2
manaverse-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.xz
manaverse-4df121e6dcdf53436f50ce81dd60096ce0138a2c.zip
Add const to more classes.
Diffstat (limited to 'src/guichan/widgets')
-rw-r--r--src/guichan/widgets/dropdown.cpp6
-rw-r--r--src/guichan/widgets/icon.cpp2
-rw-r--r--src/guichan/widgets/scrollarea.cpp2
-rw-r--r--src/guichan/widgets/slider.cpp4
4 files changed, 7 insertions, 7 deletions
diff --git a/src/guichan/widgets/dropdown.cpp b/src/guichan/widgets/dropdown.cpp
index 0cd979adc..c446b869d 100644
--- a/src/guichan/widgets/dropdown.cpp
+++ b/src/guichan/widgets/dropdown.cpp
@@ -57,9 +57,9 @@
namespace gcn
{
- DropDown::DropDown(ListModel *listModel,
- ScrollArea *scrollArea,
- ListBox *listBox)
+ DropDown::DropDown(ListModel *const listModel,
+ ScrollArea *const scrollArea,
+ ListBox *const listBox)
{
setWidth(100);
setFocusable(true);
diff --git a/src/guichan/widgets/icon.cpp b/src/guichan/widgets/icon.cpp
index 26139716d..b0d277fbd 100644
--- a/src/guichan/widgets/icon.cpp
+++ b/src/guichan/widgets/icon.cpp
@@ -71,7 +71,7 @@ namespace gcn
mImage->getHeight());
}
- Icon::Icon(const Image* image) :
+ Icon::Icon(const Image *const image) :
mImage(image),
mInternalImage(false)
{
diff --git a/src/guichan/widgets/scrollarea.cpp b/src/guichan/widgets/scrollarea.cpp
index 1251bc665..f8bd11334 100644
--- a/src/guichan/widgets/scrollarea.cpp
+++ b/src/guichan/widgets/scrollarea.cpp
@@ -80,7 +80,7 @@ namespace gcn
addMouseListener(this);
}
- ScrollArea::ScrollArea(Widget *content) :
+ ScrollArea::ScrollArea(Widget *const content) :
mVScroll(0),
mHScroll(0),
mScrollbarWidth(12),
diff --git a/src/guichan/widgets/slider.cpp b/src/guichan/widgets/slider.cpp
index ed14f525a..a9e9bed31 100644
--- a/src/guichan/widgets/slider.cpp
+++ b/src/guichan/widgets/slider.cpp
@@ -56,7 +56,7 @@
namespace gcn
{
- Slider::Slider(double scaleEnd) :
+ Slider::Slider(const double scaleEnd) :
mDragged(false),
mScaleStart(0),
mScaleEnd(scaleEnd)
@@ -72,7 +72,7 @@ namespace gcn
addKeyListener(this);
}
- Slider::Slider(double scaleStart, double scaleEnd) :
+ Slider::Slider(const double scaleStart, const double scaleEnd) :
mDragged(false),
mScaleStart(scaleStart),
mScaleEnd(scaleEnd)