summaryrefslogtreecommitdiff
path: root/src/resources/imageset.h
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.h
parent4f390339f8107c376a10151a2cae889c0ec01089 (diff)
downloadplus-0534847df83047f1ce2605187d45a762ffeae11e.tar.gz
plus-0534847df83047f1ce2605187d45a762ffeae11e.tar.bz2
plus-0534847df83047f1ce2605187d45a762ffeae11e.tar.xz
plus-0534847df83047f1ce2605187d45a762ffeae11e.zip
Add const to more classes.
Diffstat (limited to 'src/resources/imageset.h')
-rw-r--r--src/resources/imageset.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/resources/imageset.h b/src/resources/imageset.h
index aef4bf694..4ff138d7f 100644
--- a/src/resources/imageset.h
+++ b/src/resources/imageset.h
@@ -38,7 +38,8 @@ class ImageSet : public Resource
/**
* Cuts the passed image in a grid of sub images.
*/
- ImageSet(Image *img, int w, int h, int margin = 0, int spacing = 0);
+ ImageSet(Image *const img, const int w, const int h,
+ const int margin = 0, const int spacing = 0);
/**
* Destructor.
@@ -58,7 +59,8 @@ class ImageSet : public Resource
{ return mHeight; }
typedef std::vector<Image*>::size_type size_type;
- Image* get(size_type i) const;
+
+ Image* get(const size_type i) const;
size_type size() const
{ return mImages.size(); }
@@ -66,13 +68,13 @@ class ImageSet : public Resource
int getOffsetX() const
{ return mOffsetX; }
- void setOffsetX(int n)
+ void setOffsetX(const int n)
{ mOffsetX = n; }
int getOffsetY() const
{ return mOffsetY; }
- void setOffsetY(int n)
+ void setOffsetY(const int n)
{ mOffsetY = n; }
private: