From c430b75e370a21a17f80d4ba3acd84111828a462 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Sep 2013 20:08:44 +0300 Subject: add const for methods return values. --- src/spellmanager.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/spellmanager.h') diff --git a/src/spellmanager.h b/src/spellmanager.h index db4abff1c..e6323da51 100644 --- a/src/spellmanager.h +++ b/src/spellmanager.h @@ -45,13 +45,14 @@ class SpellManager final TextCommand *getSpell(const int spellId) const A_WARN_UNUSED; - TextCommand* getSpellByItem(const int itemId) const A_WARN_UNUSED; + const TextCommand* getSpellByItem(const int itemId) + const A_WARN_UNUSED; bool addSpell(TextCommand *const spell); TextCommand *createNewSpell() const A_WARN_UNUSED; - std::vector getAll() const A_WARN_UNUSED; + const std::vector &getAll() const A_WARN_UNUSED; void useItem(const int itemId) const; -- cgit v1.2.3-60-g2f50