diff options
author | Michael Lutz <michi@icosahedron.de> | 2020-12-06 21:11:48 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2020-12-27 13:19:25 +0100 |
commit | 024a3f62593fd783285c5ff09b8c85ee1fc34e2d (patch) | |
tree | 66673d58530d8c19272657678eb711dd29722e3a /src/string.cpp | |
parent | 5cbb2da79434ec002831bd72b2c81f9dcd469601 (diff) | |
download | openttd-024a3f62593fd783285c5ff09b8c85ee1fc34e2d.tar.xz |
Codechange: Use automatic memory management for language pack reading.
Diffstat (limited to 'src/string.cpp')
-rw-r--r-- | src/string.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.cpp b/src/string.cpp index 14bc926c1..91c1aa147 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -630,7 +630,7 @@ int strnatcmp(const char *s1, const char *s2, bool ignore_garbage_at_front) } #ifdef WITH_ICU_I18N - if (_current_collator != nullptr) { + if (_current_collator) { UErrorCode status = U_ZERO_ERROR; int result = _current_collator->compareUTF8(s1, s2, status); if (U_SUCCESS(status)) return result; |