diff options
author | Patric Stout <truebrain@openttd.org> | 2021-01-12 19:52:30 +0100 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-01-13 14:27:39 +0100 |
commit | 98400974a9e6a482f71e9aaaca3c3062af8d887d (patch) | |
tree | 1cb19200bbc8ea780082b9dfccfbaaf52197d73e /src/strings.cpp | |
parent | 57c45a2c010639ff06eab60346642b11cb4b7bfa (diff) | |
download | openttd-98400974a9e6a482f71e9aaaca3c3062af8d887d.tar.xz |
Codechange: nobody was using "str" parameter, so remove it
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 0f270ca8b..a98d7e966 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -1998,11 +1998,9 @@ const char *GetCurrentLanguageIsoCode() /** * Check whether there are glyphs missing in the current language. - * @param[out] str Pointer to an address for storing the text pointer. * @return If glyphs are missing, return \c true, else return \c false. - * @post If \c true is returned and str is not nullptr, *str points to a string that is found to contain at least one missing glyph. */ -bool MissingGlyphSearcher::FindMissingGlyphs(const char **str) +bool MissingGlyphSearcher::FindMissingGlyphs() { InitFreeType(this->Monospace()); const Sprite *question_mark[FS_END]; @@ -2014,7 +2012,6 @@ bool MissingGlyphSearcher::FindMissingGlyphs(const char **str) this->Reset(); for (const char *text = this->NextString(); text != nullptr; text = this->NextString()) { FontSize size = this->DefaultSize(); - if (str != nullptr) *str = text; for (WChar c = Utf8Consume(&text); c != '\0'; c = Utf8Consume(&text)) { if (c >= SCC_FIRST_FONT && c <= SCC_LAST_FONT) { size = (FontSize)(c - SCC_FIRST_FONT); @@ -2095,7 +2092,7 @@ void CheckForMissingGlyphs(bool base_font, MissingGlyphSearcher *searcher) { static LanguagePackGlyphSearcher pack_searcher; if (searcher == nullptr) searcher = &pack_searcher; - bool bad_font = !base_font || searcher->FindMissingGlyphs(nullptr); + bool bad_font = !base_font || searcher->FindMissingGlyphs(); #if defined(WITH_FREETYPE) || defined(_WIN32) if (bad_font) { /* We found an unprintable character... lets try whether we can find |