From 037ab342be37dafbbe97df3235c35721664e808f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Apr 2013 17:37:16 +0300 Subject: improve spritedef class. --- src/resources/spritedef.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/resources/spritedef.h') diff --git a/src/resources/spritedef.h b/src/resources/spritedef.h index 02090e809..08cb0d2b9 100644 --- a/src/resources/spritedef.h +++ b/src/resources/spritedef.h @@ -118,7 +118,8 @@ class SpriteDef final : public Resource * Loads a sprite definition file. */ static SpriteDef *load(const std::string &file, - const int variant, bool prot) A_WARN_UNUSED; + const int variant, + const bool prot) A_WARN_UNUSED; /** * Returns the specified action. @@ -199,7 +200,8 @@ class SpriteDef final : public Resource * When there are no animations defined for the action "complete", its * animations become a copy of those of the action "with". */ - void substituteAction(std::string complete, std::string with); + void substituteAction(const std::string &complete, + const std::string &with); typedef std::map ImageSets; typedef ImageSets::iterator ImageSetIterator; -- cgit v1.2.3-60-g2f50