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/particle/particlevector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/particle/particlevector.cpp') diff --git a/src/particle/particlevector.cpp b/src/particle/particlevector.cpp index ba8c0a0a7..8fba56244 100644 --- a/src/particle/particlevector.cpp +++ b/src/particle/particlevector.cpp @@ -79,7 +79,7 @@ void ParticleVector::moveTo(const float x, const float y) { ParticleContainer::moveTo(x, y); - for (std::vector::iterator it = mIndexedElements.begin(); + for (STD_VECTOR::iterator it = mIndexedElements.begin(); it != mIndexedElements.end(); ++it) { Particle *const p = *it; @@ -99,7 +99,7 @@ void ParticleVector::moveTo(const float x, const float y) size_t ParticleVector::usedSize() const { size_t cnt = 0; - for (std::vector::const_iterator it = mIndexedElements.begin(); + for (STD_VECTOR::const_iterator it = mIndexedElements.begin(); it != mIndexedElements.end(); ++it) { if (*it != nullptr) -- cgit v1.2.3-70-g09d2