aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/font/base_font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/base/font/base_font.cpp')
-rw-r--r--engines/wintermute/base/font/base_font.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/base/font/base_font.cpp b/engines/wintermute/base/font/base_font.cpp
index 87dd3da5a3..e3c8827254 100644
--- a/engines/wintermute/base/font/base_font.cpp
+++ b/engines/wintermute/base/font/base_font.cpp
@@ -89,7 +89,7 @@ BaseFont *BaseFont::createFromFile(BaseGame *gameRef, const Common::String &file
if (font) {
if (DID_FAIL(font->loadFile(filename))) {
delete font;
- return NULL;
+ return nullptr;
}
}
return font;
@@ -98,7 +98,7 @@ BaseFont *BaseFont::createFromFile(BaseGame *gameRef, const Common::String &file
if (font) {
if (DID_FAIL(font->loadFile(filename))) {
delete font;
- return NULL;
+ return nullptr;
}
}
return font;
@@ -119,7 +119,7 @@ bool BaseFont::isTrueType(BaseGame *gameRef, const Common::String &filename) {
byte *buffer = BaseFileManager::getEngineInstance()->readWholeFile(filename);
- if (buffer == NULL) {
+ if (buffer == nullptr) {
return false;
}