summaryrefslogtreecommitdiff
path: root/src/fontdetection.cpp
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-01-12 19:52:30 +0100
committerPatric Stout <github@truebrain.nl>2021-01-13 14:27:39 +0100
commit98400974a9e6a482f71e9aaaca3c3062af8d887d (patch)
tree1cb19200bbc8ea780082b9dfccfbaaf52197d73e /src/fontdetection.cpp
parent57c45a2c010639ff06eab60346642b11cb4b7bfa (diff)
downloadopenttd-98400974a9e6a482f71e9aaaca3c3062af8d887d.tar.xz
Codechange: nobody was using "str" parameter, so remove it
Diffstat (limited to 'src/fontdetection.cpp')
-rw-r--r--src/fontdetection.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fontdetection.cpp b/src/fontdetection.cpp
index fd48bd801..570e1aa06 100644
--- a/src/fontdetection.cpp
+++ b/src/fontdetection.cpp
@@ -347,7 +347,7 @@ static int CALLBACK EnumFontCallback(const ENUMLOGFONTEX *logfont, const NEWTEXT
PLOGFONT os_data = MallocT<LOGFONT>(1);
*os_data = logfont->elfLogFont;
info->callback->SetFontNames(info->settings, font_name, os_data);
- if (info->callback->FindMissingGlyphs(nullptr)) return 1;
+ if (info->callback->FindMissingGlyphs()) return 1;
DEBUG(freetype, 1, "Fallback font: %s (%s)", font_name, english_name);
return 0; // stop enumerating
}
@@ -477,7 +477,7 @@ bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, i
/* Save result. */
callback->SetFontNames(settings, name);
- if (!callback->FindMissingGlyphs(nullptr)) {
+ if (!callback->FindMissingGlyphs()) {
DEBUG(freetype, 2, "CT-Font for %s: %s", language_isocode, name);
result = true;
break;
@@ -488,10 +488,10 @@ bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, i
/* For some OS versions, the font 'Arial Unicode MS' does not report all languages it
* supports. If we didn't find any other font, just try it, maybe we get lucky. */
callback->SetFontNames(settings, "Arial Unicode MS");
- result = !callback->FindMissingGlyphs(nullptr);
+ result = !callback->FindMissingGlyphs();
}
- callback->FindMissingGlyphs(nullptr);
+ callback->FindMissingGlyphs();
return result;
}
@@ -623,7 +623,7 @@ bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, i
callback->SetFontNames(settings, (const char*)file);
- bool missing = callback->FindMissingGlyphs(nullptr);
+ bool missing = callback->FindMissingGlyphs();
DEBUG(freetype, 1, "Font \"%s\" misses%s glyphs", file, missing ? "" : " no");
if (!missing) {