diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-21 19:30:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-21 19:30:40 +0300 |
commit | f3ac812e2079eac53c1a9db56541d7103bd14a61 (patch) | |
tree | 3a9a9e9deebdbbb44da32ad4b1656743c4ff80c1 /src/utils | |
parent | f61f794776fd37223c0977437a6bfcfef6759f84 (diff) | |
download | manaplus-f3ac812e2079eac53c1a9db56541d7103bd14a61.tar.gz manaplus-f3ac812e2079eac53c1a9db56541d7103bd14a61.tar.bz2 manaplus-f3ac812e2079eac53c1a9db56541d7103bd14a61.tar.xz manaplus-f3ac812e2079eac53c1a9db56541d7103bd14a61.zip |
Fix code style.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/parameters.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/parameters.cpp b/src/utils/parameters.cpp index 467c31553..ef8332167 100644 --- a/src/utils/parameters.cpp +++ b/src/utils/parameters.cpp @@ -73,11 +73,10 @@ static inline size_t findNextSplit(const std::string &str, const char quote) { size_t pos = 0; - size_t idx1 = 0; while (true) { // search for next separator - idx1 = findAny(str, separator, pos); + size_t idx1 = findAny(str, separator, pos); // search for next open quote, skipping escaped quotes size_t idx2 = findNextQuote(str, quote, pos); if (idx2 == std::string::npos) // not quotes, return next separator |