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/widgets/itemcontainer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/itemcontainer.cpp') diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index 7193ce0f1..f53af32a6 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -1093,7 +1093,7 @@ void ItemContainer::updateMatrix() delete []mShowMatrix; mShowMatrix = new int[CAST_SIZE(mGridRows * mGridColumns)]; - std::vector sortedItems; + STD_VECTOR sortedItems; int i = 0; int j = 0; @@ -1156,7 +1156,7 @@ void ItemContainer::updateMatrix() int jMult = j * mGridColumns; const int maxSize = mGridRows * mGridColumns; - FOR_EACH (std::vector::const_iterator, iter, sortedItems) + FOR_EACH (STD_VECTOR::const_iterator, iter, sortedItems) { if (jMult >= maxSize) break; -- cgit v1.2.3-70-g09d2