From 126b1470842302537b0bc5e4527cf7fd540a9125 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 Feb 2013 12:33:10 +0300 Subject: Add checks and const to animatedsprites and related classes. --- src/imagesprite.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/imagesprite.h') diff --git a/src/imagesprite.h b/src/imagesprite.h index b9eb477d1..294d0264c 100644 --- a/src/imagesprite.h +++ b/src/imagesprite.h @@ -40,13 +40,14 @@ public: bool reset() override { return false; } - bool play(std::string action A_UNUSED) override + bool play(const std::string &action A_UNUSED) override { return false; } - bool update(int time A_UNUSED) override + bool update(const int time A_UNUSED) override { return false; } - bool draw(Graphics* graphics, int posX, int posY) const override; + bool draw(Graphics *const graphics, + const int posX, const int posY) const override; int getWidth() const override A_WARN_UNUSED { return mImage ? mImage->getWidth() : 0; } -- cgit v1.2.3-60-g2f50