diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-25 20:12:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-25 20:12:27 +0300 |
commit | 84e56a88817f7178b4895e2adf863b4d98b42e64 (patch) | |
tree | 794e0099ca9f749fb0b6b65b96acdb7ce5e97ef9 /src/compoundsprite.h | |
parent | 4a21e45a63137009a654a212ea7512ecc2846648 (diff) | |
download | manaplus-84e56a88817f7178b4895e2adf863b4d98b42e64.tar.gz manaplus-84e56a88817f7178b4895e2adf863b4d98b42e64.tar.bz2 manaplus-84e56a88817f7178b4895e2adf863b4d98b42e64.tar.xz manaplus-84e56a88817f7178b4895e2adf863b4d98b42e64.zip |
Add const to other classes.
Diffstat (limited to 'src/compoundsprite.h')
-rw-r--r-- | src/compoundsprite.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compoundsprite.h b/src/compoundsprite.h index 0490be8d8..893dfcbd8 100644 --- a/src/compoundsprite.h +++ b/src/compoundsprite.h @@ -88,14 +88,14 @@ public: bool empty() const { return mSprites.empty(); } - void addSprite(Sprite *sprite); + void addSprite(Sprite *const sprite); - void setSprite(int layer, Sprite *sprite); + void setSprite(const int layer, Sprite *const sprite); Sprite *getSprite(int layer) const { return mSprites.at(layer); } - void removeSprite(int layer); + void removeSprite(const int layer); void clear(); @@ -119,7 +119,7 @@ public: virtual void setAlpha(float alpha); - bool updateNumber(unsigned num); + bool updateNumber(const unsigned num); static void setEnableDelay(bool b) { mEnableDelay = b; } |