diff options
author | Stefan Radomski <github@mintwerk.de> | 2016-11-28 17:03:31 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2016-11-28 17:03:31 (GMT) |
commit | a6313d4ab2005196f376870c9ca945c691948416 (patch) | |
tree | 5345422d235e7c511885601854b6a2923db09e2e /src/uscxml/util/String.cpp | |
parent | fcfc842a1ccee7a6b2579889f3236d50849c0679 (diff) | |
download | uscxml-a6313d4ab2005196f376870c9ca945c691948416.zip uscxml-a6313d4ab2005196f376870c9ca945c691948416.tar.gz uscxml-a6313d4ab2005196f376870c9ca945c691948416.tar.bz2 |
Refactored Java into bindings and generated
Diffstat (limited to 'src/uscxml/util/String.cpp')
-rw-r--r-- | src/uscxml/util/String.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/uscxml/util/String.cpp b/src/uscxml/util/String.cpp index 95d69e9..7334d73 100644 --- a/src/uscxml/util/String.cpp +++ b/src/uscxml/util/String.cpp @@ -90,7 +90,8 @@ std::list<std::string> tokenize(const std::string &line, const char sep, bool tr i++; // skip multiple occurences of seperator and whitespaces } start = i; - } else if (i + 1 == line.size()) { + } + if (i + 1 == line.size()) { tokens.push_back(line.substr(start, i + 1 - start)); } } @@ -224,4 +225,4 @@ NEXT_DESC: } -}
\ No newline at end of file +} |