summaryrefslogtreecommitdiff
path: root/src/compoundsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-05 23:41:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-05 23:41:50 +0300
commit98fff0b1a6fc9103759855e888b6be241fcb8510 (patch)
tree168edf43c65ba2fdaa2667424854009c2fc0b7dc /src/compoundsprite.cpp
parent126b1470842302537b0bc5e4527cf7fd540a9125 (diff)
downloadplus-98fff0b1a6fc9103759855e888b6be241fcb8510.tar.gz
plus-98fff0b1a6fc9103759855e888b6be241fcb8510.tar.bz2
plus-98fff0b1a6fc9103759855e888b6be241fcb8510.tar.xz
plus-98fff0b1a6fc9103759855e888b6be241fcb8510.zip
Add missing checks to being class.
Diffstat (limited to 'src/compoundsprite.cpp')
-rw-r--r--src/compoundsprite.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp
index ef956d8f4..01e144bf4 100644
--- a/src/compoundsprite.cpp
+++ b/src/compoundsprite.cpp
@@ -143,7 +143,8 @@ bool CompoundSprite::draw(Graphics *const graphics,
return false;
}
-void CompoundSprite::drawSprites(Graphics* graphics, int posX, int posY) const
+void CompoundSprite::drawSprites(Graphics *const graphics,
+ const int posX, const int posY) const
{
FOR_EACH (SpriteConstIterator, it, mSprites)
{
@@ -155,8 +156,8 @@ void CompoundSprite::drawSprites(Graphics* graphics, int posX, int posY) const
}
}
-void CompoundSprite::drawSpritesSDL(Graphics* graphics,
- int posX, int posY) const
+void CompoundSprite::drawSpritesSDL(Graphics *const graphics,
+ const int posX, const int posY) const
{
FOR_EACH (SpriteConstIterator, it, mSprites)
{