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/windows/whoisonline.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gui/windows/whoisonline.cpp') diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp index c1e5ffb12..79fe66a4f 100644 --- a/src/gui/windows/whoisonline.cpp +++ b/src/gui/windows/whoisonline.cpp @@ -245,7 +245,7 @@ void WhoIsOnline::updateWindow(size_t numOnline) std::sort(mNeutral.begin(), mNeutral.end(), nameCompare); std::sort(mDisregard.begin(), mDisregard.end(), nameCompare); bool addedFromSection(false); - FOR_EACH (std::vector::const_iterator, it, mFriends) + FOR_EACH (STD_VECTOR::const_iterator, it, mFriends) { mBrowserBox->addRow((*it)->getText()); addedFromSection = true; @@ -255,7 +255,7 @@ void WhoIsOnline::updateWindow(size_t numOnline) mBrowserBox->addRow("---"); addedFromSection = false; } - FOR_EACH (std::vector::const_iterator, it, mEnemy) + FOR_EACH (STD_VECTOR::const_iterator, it, mEnemy) { mBrowserBox->addRow((*it)->getText()); addedFromSection = true; @@ -265,7 +265,7 @@ void WhoIsOnline::updateWindow(size_t numOnline) mBrowserBox->addRow("---"); addedFromSection = false; } - FOR_EACH (std::vector::const_iterator, it, mNeutral) + FOR_EACH (STD_VECTOR::const_iterator, it, mNeutral) { mBrowserBox->addRow((*it)->getText()); addedFromSection = true; @@ -273,7 +273,7 @@ void WhoIsOnline::updateWindow(size_t numOnline) if (addedFromSection == true && !mDisregard.empty()) mBrowserBox->addRow("---"); - FOR_EACH (std::vector::const_iterator, it, mDisregard) + FOR_EACH (STD_VECTOR::const_iterator, it, mDisregard) mBrowserBox->addRow((*it)->getText()); if (mScrollArea->getVerticalMaxScroll() < @@ -324,7 +324,7 @@ void WhoIsOnline::handlerPlayerRelation(const std::string &nick, } } -void WhoIsOnline::loadList(const std::vector &list) +void WhoIsOnline::loadList(const STD_VECTOR &list) { mBrowserBox->clearRows(); const size_t numOnline = list.size(); @@ -336,7 +336,7 @@ void WhoIsOnline::loadList(const std::vector &list) mShowLevel = config.getBoolValue("showlevel"); - FOR_EACH (std::vector::const_iterator, it, list) + FOR_EACH (STD_VECTOR::const_iterator, it, list) { OnlinePlayer *player = *it; const std::string nick = player->getNick(); -- cgit v1.2.3-70-g09d2