summaryrefslogtreecommitdiff
path: root/shared/zstring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shared/zstring.cpp')
-rw-r--r--shared/zstring.cpp4
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)
bgstack15