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/actions/actions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/actions/actions.cpp') diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 8f2c8facc..9fd53d926 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -1479,7 +1479,7 @@ impHandler0(testSdlFont) timespec time1; timespec time2; NullOpenGLGraphics *nullGraphics = new NullOpenGLGraphics; - std::vector data; + STD_VECTOR data; volatile int width = 0; for (int f = 0; f < 300; f ++) @@ -1491,12 +1491,12 @@ impHandler0(testSdlFont) for (int f = 0; f < 500; f ++) { - FOR_EACH (std::vector::const_iterator, it, data) + FOR_EACH (STD_VECTOR::const_iterator, it, data) { width += font->getWidth(*it); font->drawString(nullGraphics, color, color, *it, 10, 10); } - FOR_EACH (std::vector::const_iterator, it, data) + FOR_EACH (STD_VECTOR::const_iterator, it, data) font->drawString(nullGraphics, color, color, *it, 10, 10); font->doClean(); -- cgit v1.2.3-70-g09d2