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/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 8dbdd0354..257ae3e35 100644 --- a/src/spellmanager.cpp +++ b/src/spellmanager.cpp @@ -116,7 +116,7 @@ bool SpellManager::addSpell(TextCommand *const spell) return false; } -const std::vector &SpellManager::getAll() const +const STD_VECTOR &SpellManager::getAll() const { return mSpellsVector; } @@ -370,8 +370,8 @@ void SpellManager::save() const std::string SpellManager::autoComplete(const std::string &partName) const { - std::vector::const_iterator i = mSpellsVector.begin(); - const std::vector::const_iterator + STD_VECTOR::const_iterator i = mSpellsVector.begin(); + const STD_VECTOR::const_iterator i_end = mSpellsVector.end(); std::string newName; const TextCommand *newCommand = nullptr; -- cgit v1.2.3-60-g2f50