diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2018-10-14 18:17:09 +0100 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2018-10-31 12:41:49 +0100 |
commit | e0c0394e373d2f3326383e79d7fcb9f4e288ae02 (patch) | |
tree | 0242bbb30aea2abf39ead7af8f0cf7d5fe8f0542 /src/strings.cpp | |
parent | f5b1115039e41d7f75f91e7355003f10dd01b352 (diff) | |
download | openttd-e0c0394e373d2f3326383e79d7fcb9f4e288ae02.tar.xz |
Fix: Remove various dead or unnecessary assignments
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 1ff7e2aea..8ec9844b6 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -818,7 +818,6 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg sub_args.ClearTypeInformation(); memset(sub_args_need_free, 0, sizeof(sub_args_need_free)); - const char *s = str; char *p; uint32 stringid = strtoul(str, &p, 16); if (*p != ':' && *p != '\0') { @@ -837,7 +836,7 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg int i = 0; while (*p != '\0' && i < 20) { uint64 param; - s = ++p; + const char *s = ++p; /* Find the next value */ bool instring = false; |