diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-29 22:00:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-30 00:36:10 +0300 |
commit | 6fcbad4dc14b65acde858781cb0b0be1e9df9436 (patch) | |
tree | 22a555d054fc28f59477f91287df1a513c10b91a /src/gui/questswindow.cpp | |
parent | b59601f599e84ed3b271a15ae4033f44e2c55763 (diff) | |
download | mv-6fcbad4dc14b65acde858781cb0b0be1e9df9436.tar.gz mv-6fcbad4dc14b65acde858781cb0b0be1e9df9436.tar.bz2 mv-6fcbad4dc14b65acde858781cb0b0be1e9df9436.tar.xz mv-6fcbad4dc14b65acde858781cb0b0be1e9df9436.zip |
Fix code style.
Diffstat (limited to 'src/gui/questswindow.cpp')
-rw-r--r-- | src/gui/questswindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/questswindow.cpp b/src/gui/questswindow.cpp index e9eb37600..a33de32b6 100644 --- a/src/gui/questswindow.cpp +++ b/src/gui/questswindow.cpp @@ -133,8 +133,8 @@ QuestsWindow::~QuestsWindow() delete mQuestsModel; mQuestsModel = nullptr; - for (std::map<int, std::vector<QuestItem*>>::iterator it = mQuests.begin(), - it_end = mQuests.end(); it != it_end; ++ it) + for (std::map<int, std::vector<QuestItem*> >::iterator it + = mQuests.begin(), it_end = mQuests.end(); it != it_end; ++ it) { std::vector<QuestItem*> &quests = (*it).second; for (std::vector<QuestItem*>::iterator it2 = quests.begin(), @@ -195,7 +195,7 @@ void QuestsWindow::loadQuest(int var, XmlNodePtr node) } quest->incomplete = splitToIntSet(incompleteStr, ','); quest->complete = splitToIntSet(completeStr, ','); - if (quest->incomplete.size() + quest->complete.size() == 0) + if (quest->incomplete.empty() && quest->complete.empty()) { logger->log("complete flags incorrect"); delete quest; |