diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-12 17:33:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-12 17:33:51 +0300 |
commit | 37969cb5a1892a05abc84f087213c9903c2c654e (patch) | |
tree | 52835ded960d26e227a5ec3f7690c092a6b8a2d5 /src/utils | |
parent | c98d192af4daa48a4c27cfa3225e22e89f329525 (diff) | |
download | manaplus-37969cb5a1892a05abc84f087213c9903c2c654e.tar.gz manaplus-37969cb5a1892a05abc84f087213c9903c2c654e.tar.bz2 manaplus-37969cb5a1892a05abc84f087213c9903c2c654e.tar.xz manaplus-37969cb5a1892a05abc84f087213c9903c2c654e.zip |
Fix code style.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/parameters.cpp (renamed from src/utils/paramerers.cpp) | 9 | ||||
-rw-r--r-- | src/utils/parameters.h (renamed from src/utils/paramerers.h) | 0 | ||||
-rw-r--r-- | src/utils/parameters_unittest.cc (renamed from src/utils/paramerers_unittest.cc) | 2 |
3 files changed, 3 insertions, 8 deletions
diff --git a/src/utils/paramerers.cpp b/src/utils/parameters.cpp index aa3ae350f..467c31553 100644 --- a/src/utils/paramerers.cpp +++ b/src/utils/parameters.cpp @@ -18,14 +18,10 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "utils/paramerers.h" - -#include "logger.h" +#include "utils/parameters.h" #include "utils/stringutils.h" -#include <sstream> - #include "debug.h" static inline void addToken(StringVect &tokens, @@ -94,7 +90,7 @@ static inline size_t findNextSplit(const std::string &str, idx2 = findNextQuote(str, quote, idx2 + 1); if (idx2 == std::string::npos) return std::string::npos; // no close quote, here error - // searching next + // set position for next separator or quote pos = idx2 + 1; } else @@ -102,7 +98,6 @@ static inline size_t findNextSplit(const std::string &str, return idx1; } } - return idx1; } bool splitParameters(StringVect &tokens, diff --git a/src/utils/paramerers.h b/src/utils/parameters.h index d93f7a207..d93f7a207 100644 --- a/src/utils/paramerers.h +++ b/src/utils/parameters.h diff --git a/src/utils/paramerers_unittest.cc b/src/utils/parameters_unittest.cc index fbccef0e1..f1c4557ee 100644 --- a/src/utils/paramerers_unittest.cc +++ b/src/utils/parameters_unittest.cc @@ -20,7 +20,7 @@ #include "catch.hpp" -#include "utils/paramerers.h" +#include "utils/parameters.h" #include "debug.h" |