diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-02 21:25:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-02 21:25:21 +0300 |
commit | 0534847df83047f1ce2605187d45a762ffeae11e (patch) | |
tree | 92365ee5ec086b3c65f024096df9d63bd05b31d4 /src/resources/imageset.h | |
parent | 4f390339f8107c376a10151a2cae889c0ec01089 (diff) | |
download | manaverse-0534847df83047f1ce2605187d45a762ffeae11e.tar.gz manaverse-0534847df83047f1ce2605187d45a762ffeae11e.tar.bz2 manaverse-0534847df83047f1ce2605187d45a762ffeae11e.tar.xz manaverse-0534847df83047f1ce2605187d45a762ffeae11e.zip |
Add const to more classes.
Diffstat (limited to 'src/resources/imageset.h')
-rw-r--r-- | src/resources/imageset.h | 10 |
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: |