From 7cc864e68935b035d69d68aba2f8ad38ce275d5a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 6 Jul 2013 01:30:12 +0300 Subject: fix code style and some minor issues. --- src/spellmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/spellmanager.cpp') diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp index 83fb746a7..23eb90ad1 100644 --- a/src/spellmanager.cpp +++ b/src/spellmanager.cpp @@ -408,13 +408,13 @@ void SpellManager::swap(const int id1, const int id2) spell2->setId(tmp); // swap in vector - const int sz = SPELL_SHORTCUT_ITEMS * SPELL_SHORTCUT_TABS; - for (unsigned f = 0; f < sz; f++) + const size_t sz = SPELL_SHORTCUT_ITEMS * SPELL_SHORTCUT_TABS; + for (size_t f = 0; f < sz; f++) { const TextCommand *const spellA = mSpellsVector[f]; if (spellA == spell1) { - for (unsigned d = 0; d < sz; d++) + for (size_t d = 0; d < sz; d++) { const TextCommand *const spellB = mSpellsVector[d]; if (spellB == spell2) -- cgit v1.2.3-60-g2f50