summaryrefslogtreecommitdiff
path: root/src/os/unix/font_unix.cpp
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-06-16 21:12:08 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-06-17 16:18:30 +0200
commitf904aef176b7bde38f27cc9b4f23c55dc13d2ce5 (patch)
tree2ea8cfd92faf9786275824cf1a5c5be927283601 /src/os/unix/font_unix.cpp
parenta9774f3e341812d43427b9e0166b0def08202477 (diff)
downloadopenttd-f904aef176b7bde38f27cc9b4f23c55dc13d2ce5.tar.xz
Cleanup: use nullptr instead of 0 or NULL
Diffstat (limited to 'src/os/unix/font_unix.cpp')
-rw-r--r--src/os/unix/font_unix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/unix/font_unix.cpp b/src/os/unix/font_unix.cpp
index f8cf96a48..246d65e63 100644
--- a/src/os/unix/font_unix.cpp
+++ b/src/os/unix/font_unix.cpp
@@ -51,10 +51,10 @@ FT_Error GetFontByFaceName(const char *font_name, FT_Face *face)
/* Resolve the name and populate the information structure */
pat = FcNameParse((FcChar8 *)font_family);
if (font_style != nullptr) FcPatternAddString(pat, FC_STYLE, (FcChar8 *)font_style);
- FcConfigSubstitute(0, pat, FcMatchPattern);
+ FcConfigSubstitute(nullptr, pat, FcMatchPattern);
FcDefaultSubstitute(pat);
fs = FcFontSetCreate();
- match = FcFontMatch(0, pat, &result);
+ match = FcFontMatch(nullptr, pat, &result);
if (fs != nullptr && match != nullptr) {
int i;