From 311c175f3184103950c72bc5c775174597430b83 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 14 Jul 2017 01:31:22 +0300 Subject: Replace std::vector into macro STD_VECTOR. In most case it equal to std::vector except debug modes. Now it can be also mse::mstd::vector, but sadly this class not support all required features. --- src/gui/shortcut/spellshortcut.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/shortcut') diff --git a/src/gui/shortcut/spellshortcut.cpp b/src/gui/shortcut/spellshortcut.cpp index ef6815a2c..14eaa2f48 100644 --- a/src/gui/shortcut/spellshortcut.cpp +++ b/src/gui/shortcut/spellshortcut.cpp @@ -47,10 +47,10 @@ void SpellShortcut::load() if (spellManager == nullptr) return; - const std::vector &spells = spellManager->getAll(); + const STD_VECTOR &spells = spellManager->getAll(); unsigned k = 0; - for (std::vector::const_iterator i = spells.begin(), + for (STD_VECTOR::const_iterator i = spells.begin(), i_end = spells.end(); i != i_end && k < SPELLS_SIZE; ++i) { mItems[k++] = (*i)->getId(); -- cgit v1.2.3-60-g2f50