diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:02:17 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:02:17 +0200 |
commit | b9203ee84953006547f4afd58f405874c87bf0dc (patch) | |
tree | 9e41f1533f120e9268e86658c52458630ffd718a /shared/zstring.cpp | |
parent | 3.0 (diff) | |
download | FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.tar.gz FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.tar.bz2 FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.zip |
3.1
Diffstat (limited to 'shared/zstring.cpp')
-rw-r--r-- | shared/zstring.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/zstring.cpp b/shared/zstring.cpp index 9909abb9..04c79b6f 100644 --- a/shared/zstring.cpp +++ b/shared/zstring.cpp @@ -88,7 +88,7 @@ Zstring& Zstring::Replace(const DefaultChar* old, const DefaultChar* replacement const size_t replacementLen = defaultLength(replacement); size_t pos = 0; - while (true) + for (;;) { pos = find(old, pos); if (pos == npos) @@ -216,7 +216,7 @@ std::vector<Zstring> Zstring::Tokenize(const DefaultChar delimiter) const const size_t thisLen = length(); size_t indexStart = 0; - while (true) + for (;;) { size_t indexEnd = find(delimiter, indexStart); if (indexEnd == Zstring::npos) |