summaryrefslogtreecommitdiff
path: root/src/gui/widgets/icon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/icon.cpp')
-rw-r--r--src/gui/widgets/icon.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/icon.cpp b/src/gui/widgets/icon.cpp
index 9cb42a9f7..e7404ad93 100644
--- a/src/gui/widgets/icon.cpp
+++ b/src/gui/widgets/icon.cpp
@@ -36,14 +36,14 @@ Icon::Icon(const std::string &file)
setSize(mImage->mBounds.w, mImage->mBounds.h);
}
-Icon::Icon(Image *image)
+Icon::Icon(Image *const image)
: mImage(image)
{
if (mImage)
setSize(mImage->mBounds.w, mImage->mBounds.h);
}
-void Icon::setImage(Image *image)
+void Icon::setImage(Image *const image)
{
mImage = image;
if (mImage)
@@ -54,7 +54,7 @@ void Icon::draw(gcn::Graphics *g)
{
if (mImage)
{
- Graphics *graphics = static_cast<Graphics*>(g);
+ Graphics *const graphics = static_cast<Graphics*>(g);
const int x = (getWidth() - mImage->mBounds.w) / 2;
const int y = (getHeight() - mImage->mBounds.h) / 2;
graphics->drawImage(mImage, x, y);