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/popups/beingpopup.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/popups/beingpopup.cpp') diff --git a/src/gui/popups/beingpopup.cpp b/src/gui/popups/beingpopup.cpp index 251848ed8..299683f6d 100644 --- a/src/gui/popups/beingpopup.cpp +++ b/src/gui/popups/beingpopup.cpp @@ -67,7 +67,7 @@ void BeingPopup::postInit() { Popup::postInit(); add(mBeingName); - FOR_EACH (std::vector::iterator, it, mLabels) + FOR_EACH (STD_VECTOR::iterator, it, mLabels) { add(*it); } @@ -124,7 +124,7 @@ void BeingPopup::show(const int x, const int y, Being *const b) } mBeingName->adjustSize(); - FOR_EACH (std::vector::iterator, it, mLabels) + FOR_EACH (STD_VECTOR::iterator, it, mLabels) { (*it)->setCaption(std::string()); } @@ -311,7 +311,7 @@ void BeingPopup::show(const int x, const int y, Being *const b) int minWidth = mBeingName->getWidth(); const int height1 = getFont()->getHeight(); int height = height1; - FOR_EACH (std::vector::iterator, it, mLabels) + FOR_EACH (STD_VECTOR::iterator, it, mLabels) { const Label *const label = *it; if (label != nullptr) -- cgit v1.2.3-70-g09d2