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/compoundsprite.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/compoundsprite.h') diff --git a/src/compoundsprite.h b/src/compoundsprite.h index 2e3204d18..aa9b2d7b6 100644 --- a/src/compoundsprite.h +++ b/src/compoundsprite.h @@ -61,11 +61,12 @@ public: virtual bool reset() override; - virtual bool play(std::string action) override; + virtual bool play(const std::string &action) override; - virtual bool update(int time) override; + virtual bool update(const int time) override; - virtual bool draw(Graphics *graphics, int posX, int posY) const override; + virtual bool draw(Graphics *const graphics, + const int posX, const int posY) const override; /** * Gets the width in pixels of the first sprite in the list. -- cgit v1.2.3-60-g2f50