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/utils/browserboxtools.cpp | 2 +- src/utils/langs.h | 2 +- src/utils/stringutils.cpp | 2 +- src/utils/stringutils.h | 2 +- src/utils/stringvector.h | 2 +- src/utils/xmlutils.cpp | 2 +- src/utils/xmlutils.h | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/utils') diff --git a/src/utils/browserboxtools.cpp b/src/utils/browserboxtools.cpp index a8c2b6b3f..10113e220 100644 --- a/src/utils/browserboxtools.cpp +++ b/src/utils/browserboxtools.cpp @@ -126,7 +126,7 @@ std::string BrowserBoxTools::replaceLinkCommands(const std::string &link) const int id = atoi(link.substr(0, idx).c_str()); if (id != 0) { - std::vector parts; + STD_VECTOR parts; splitToIntVector(parts, link.substr(idx), ','); while (parts.size() < maxCards) diff --git a/src/utils/langs.h b/src/utils/langs.h index 133883089..63a6f9674 100644 --- a/src/utils/langs.h +++ b/src/utils/langs.h @@ -27,7 +27,7 @@ #include "localconsts.h" -typedef std::vector LangVect; +typedef STD_VECTOR LangVect; typedef LangVect::const_iterator LangIter; LangVect getLang() A_WARN_UNUSED; diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index 7f3ba988c..2d91509c8 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -513,7 +513,7 @@ void splitToStringSet(std::set &tokens, } } -void splitToIntVector(std::vector &tokens, +void splitToIntVector(STD_VECTOR &tokens, const std::string &text, const char separator) { diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h index 545734a56..1b93c41d7 100644 --- a/src/utils/stringutils.h +++ b/src/utils/stringutils.h @@ -201,7 +201,7 @@ void splitToStringVector(StringVect &tokens, void splitToStringSet(std::set &tokens, const std::string &text, const char separator); -void splitToIntVector(std::vector &tokens, +void splitToIntVector(STD_VECTOR &tokens, const std::string &text, const char separator); std::string combineDye(std::string file, const std::string &dye) A_WARN_UNUSED; diff --git a/src/utils/stringvector.h b/src/utils/stringvector.h index 7649f3b35..18a53881c 100644 --- a/src/utils/stringvector.h +++ b/src/utils/stringvector.h @@ -25,7 +25,7 @@ #include -typedef std::vector StringVect; +typedef STD_VECTOR StringVect; typedef StringVect::iterator StringVectIter; typedef StringVect::const_iterator StringVectCIter; diff --git a/src/utils/xmlutils.cpp b/src/utils/xmlutils.cpp index ccb3aa870..56510c316 100644 --- a/src/utils/xmlutils.cpp +++ b/src/utils/xmlutils.cpp @@ -31,7 +31,7 @@ void readXmlIntVector(const std::string &fileName, const std::string §ionName, const std::string &itemName, const std::string &attributeName, - std::vector &arr, + STD_VECTOR &arr, const SkipError skipError) { XML::Document doc(fileName, UseVirtFs_true, skipError); diff --git a/src/utils/xmlutils.h b/src/utils/xmlutils.h index 6b24dc471..daa0575a8 100644 --- a/src/utils/xmlutils.h +++ b/src/utils/xmlutils.h @@ -33,7 +33,7 @@ void readXmlIntVector(const std::string &fileName, const std::string §ionName, const std::string &itemName, const std::string &attributeName, - std::vector &arr, + STD_VECTOR &arr, const SkipError skipError); void readXmlStringMap(const std::string &fileName, -- cgit v1.2.3-60-g2f50