summaryrefslogtreecommitdiff
path: root/src/gui/windows/questswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-14 01:31:22 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-14 01:31:22 +0300
commit311c175f3184103950c72bc5c775174597430b83 (patch)
treead022dc44a1c4177b3d53bf0d7eaa5a1736c8cf1 /src/gui/windows/questswindow.cpp
parent16bcb81b0509725e4546bcb3c390ca3c1bb7e7b1 (diff)
downloadmv-311c175f3184103950c72bc5c775174597430b83.tar.gz
mv-311c175f3184103950c72bc5c775174597430b83.tar.bz2
mv-311c175f3184103950c72bc5c775174597430b83.tar.xz
mv-311c175f3184103950c72bc5c775174597430b83.zip
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.
Diffstat (limited to 'src/gui/windows/questswindow.cpp')
-rw-r--r--src/gui/windows/questswindow.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/windows/questswindow.cpp b/src/gui/windows/questswindow.cpp
index af9f19369..1eb2da841 100644
--- a/src/gui/windows/questswindow.cpp
+++ b/src/gui/windows/questswindow.cpp
@@ -187,10 +187,10 @@ void QuestsWindow::rebuild(const bool playSound)
mQuestLinks.clear();
mQuestReverseLinks.clear();
StringVect &names = mQuestsModel->getNames();
- std::vector<Image*> &images = mQuestsModel->getImages();
- std::vector<QuestItem*> complete;
- std::vector<QuestItem*> incomplete;
- std::vector<QuestItem*> hidden;
+ STD_VECTOR<Image*> &images = mQuestsModel->getImages();
+ STD_VECTOR<QuestItem*> complete;
+ STD_VECTOR<QuestItem*> incomplete;
+ STD_VECTOR<QuestItem*> hidden;
int updatedQuest = -1;
int newCompleteStatus = -1;
@@ -198,8 +198,8 @@ void QuestsWindow::rebuild(const bool playSound)
{
const int var = (*it).first;
const QuestVar &val = (*it).second;
- const std::vector<QuestItem*> &quests = (*mQuests)[var];
- FOR_EACH (std::vector<QuestItem*>::const_iterator, it2, quests)
+ const STD_VECTOR<QuestItem*> &quests = (*mQuests)[var];
+ FOR_EACH (STD_VECTOR<QuestItem*>::const_iterator, it2, quests)
{
if (*it2 == nullptr)
continue;
@@ -225,7 +225,7 @@ void QuestsWindow::rebuild(const bool playSound)
int k = 0;
- for (std::vector<QuestItem*>::const_iterator it = complete.begin(),
+ for (STD_VECTOR<QuestItem*>::const_iterator it = complete.begin(),
it_end = complete.end(); it != it_end; ++ it, k ++)
{
QuestItem *const quest = *it;
@@ -250,7 +250,7 @@ void QuestsWindow::rebuild(const bool playSound)
}
}
- for (std::vector<QuestItem*>::const_iterator it = incomplete.begin(),
+ for (STD_VECTOR<QuestItem*>::const_iterator it = incomplete.begin(),
it_end = incomplete.end(); it != it_end; ++ it, k ++)
{
QuestItem *const quest = *it;
@@ -274,7 +274,7 @@ void QuestsWindow::rebuild(const bool playSound)
}
}
- FOR_EACH (std::vector<QuestItem*>::const_iterator, it, hidden)
+ FOR_EACH (STD_VECTOR<QuestItem*>::const_iterator, it, hidden)
(*it)->completeFlag = -1;
if (updatedQuest == -1 || updatedQuest >= CAST_S32(
@@ -310,14 +310,14 @@ void QuestsWindow::showQuest(const QuestItem *const quest)
if (quest == nullptr)
return;
- const std::vector<QuestItemText> &texts = quest->texts;
+ const STD_VECTOR<QuestItemText> &texts = quest->texts;
const QuestVar &var = (*mVars)[quest->var];
const std::string var1 = toString(var.var1);
const std::string var2 = toString(var.var2);
const std::string var3 = toString(var.var3);
const std::string timeStr = timeDiffToString(var.time1);
mText->clearRows();
- FOR_EACH (std::vector<QuestItemText>::const_iterator, it, texts)
+ FOR_EACH (STD_VECTOR<QuestItemText>::const_iterator, it, texts)
{
const QuestItemText &data = *it;
std::string text = data.text;
@@ -379,7 +379,7 @@ void QuestsWindow::setMap(const Map *const map)
return;
const std::string name = mMap->getProperty("shortName");
- FOR_EACHP (std::vector<QuestEffect*>::const_iterator, it, mAllEffects)
+ FOR_EACHP (STD_VECTOR<QuestEffect*>::const_iterator, it, mAllEffects)
{
const QuestEffect *const effect = *it;
if ((effect != nullptr) && name == effect->map)
@@ -394,7 +394,7 @@ void QuestsWindow::updateEffects()
NpcQuestEffectMap oldNpc = mNpcEffects;
mNpcEffects.clear();
- FOR_EACH (std::vector<const QuestEffect*>::const_iterator,
+ FOR_EACH (STD_VECTOR<const QuestEffect*>::const_iterator,
it, mMapEffects)
{
const QuestEffect *const effect = *it;