From 6419386c4c382753509425826ee609dd07d4ae72 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Sep 2013 22:39:29 +0300 Subject: add const to other files. --- src/spellmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/spellmanager.cpp') diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp index b72d8ec40..2038c478a 100644 --- a/src/spellmanager.cpp +++ b/src/spellmanager.cpp @@ -55,7 +55,7 @@ TextCommand* SpellManager::getSpell(const int spellId) const if (spellId < 0 || static_cast(spellId) >= mSpells.size()) return nullptr; - std::map::const_iterator + const std::map::const_iterator it = mSpells.find(spellId); return it != mSpells.end() ? (*it).second : nullptr; @@ -404,7 +404,7 @@ void SpellManager::swap(const int id1, const int id2) mSpells[id2] = spell1; // swap id - int tmp = spell1->getId(); + const int tmp = spell1->getId(); spell1->setId(spell2->getId()); spell2->setId(tmp); -- cgit v1.2.3-60-g2f50