summaryrefslogtreecommitdiff
path: root/src/compoundsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-05 12:33:10 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-05 15:48:51 +0300
commit126b1470842302537b0bc5e4527cf7fd540a9125 (patch)
tree8d98425338e7a7f01add71d762fba147fc097fc2 /src/compoundsprite.cpp
parentf6920653c7a958528df248ff61c372a0bd3d4f1d (diff)
downloadplus-126b1470842302537b0bc5e4527cf7fd540a9125.tar.gz
plus-126b1470842302537b0bc5e4527cf7fd540a9125.tar.bz2
plus-126b1470842302537b0bc5e4527cf7fd540a9125.tar.xz
plus-126b1470842302537b0bc5e4527cf7fd540a9125.zip
Add checks and const to animatedsprites and related classes.
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 45c408b49..ef956d8f4 100644
--- a/src/compoundsprite.cpp
+++ b/src/compoundsprite.cpp
@@ -87,7 +87,7 @@ bool CompoundSprite::reset()
return ret;
}
-bool CompoundSprite::play(std::string action)
+bool CompoundSprite::play(const std::string &action)
{
bool ret = false;
@@ -101,7 +101,7 @@ bool CompoundSprite::play(std::string action)
return ret;
}
-bool CompoundSprite::update(int time)
+bool CompoundSprite::update(const int time)
{
bool ret = false;
@@ -115,7 +115,8 @@ bool CompoundSprite::update(int time)
return ret;
}
-bool CompoundSprite::draw(Graphics *graphics, int posX, int posY) const
+bool CompoundSprite::draw(Graphics *const graphics,
+ const int posX, const int posY) const
{
FUNC_BLOCK("CompoundSprite::draw", 1)
if (mNeedsRedraw)