summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2011-02-25 21:53:43 +0000
committeralberth <alberth@openttd.org>2011-02-25 21:53:43 +0000
commit1dbc0a20bed5cd85035b4f84a649c4f7386b07ab (patch)
tree2913d6359a374885441eeb51a67c6e0c7e0f08ef /src/strings.cpp
parent87c8d97aca779cb227a4e015233cd266b63f2b79 (diff)
downloadopenttd-1dbc0a20bed5cd85035b4f84a649c4f7386b07ab.tar.xz
(svn r22144) -Codechange: Unify 'while (true)' to 'for (;;)'
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index c6ad1f445..d5bbabc01 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -675,7 +675,7 @@ static char *FormatString(char *buff, const char *str_arg, int64 *argv, const in
std::stack<const char *> str_stack;
str_stack.push(str_arg);
- while (true) {
+ for (;;) {
while (!str_stack.empty() && (b = Utf8Consume(&str_stack.top())) == '\0') {
str_stack.pop();
}