From 0534847df83047f1ce2605187d45a762ffeae11e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 2 Sep 2012 21:25:21 +0300 Subject: Add const to more classes. --- src/resources/imageset.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/resources/imageset.cpp') 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()) { -- cgit v1.2.3-70-g09d2