summaryrefslogtreecommitdiff
path: root/src/resources/imageset.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-02 21:25:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-02 21:25:21 +0300
commit0534847df83047f1ce2605187d45a762ffeae11e (patch)
tree92365ee5ec086b3c65f024096df9d63bd05b31d4 /src/resources/imageset.cpp
parent4f390339f8107c376a10151a2cae889c0ec01089 (diff)
downloadmanaplus-0534847df83047f1ce2605187d45a762ffeae11e.tar.gz
manaplus-0534847df83047f1ce2605187d45a762ffeae11e.tar.bz2
manaplus-0534847df83047f1ce2605187d45a762ffeae11e.tar.xz
manaplus-0534847df83047f1ce2605187d45a762ffeae11e.zip
Add const to more classes.
Diffstat (limited to 'src/resources/imageset.cpp')
-rw-r--r--src/resources/imageset.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/imageset.cpp b/src/resources/imageset.cpp
index 4b63d0883..538b27c84 100644
--- a/src/resources/imageset.cpp
+++ b/src/resources/imageset.cpp
@@ -30,8 +30,8 @@
#include "debug.h"
-ImageSet::ImageSet(Image *img, int width, int height,
- int margin, int spacing) :
+ImageSet::ImageSet(Image *const img, const int width, const int height,
+ const int margin, const int spacing) :
mWidth(width),
mHeight(height),
mOffsetX(0),
@@ -56,7 +56,7 @@ ImageSet::~ImageSet()
delete_all(mImages);
}
-Image* ImageSet::get(size_type i) const
+Image* ImageSet::get(const size_type i) const
{
if (i >= mImages.size())
{