diff options
author | Bastien Bouclet | 2018-04-05 20:25:28 +0200 |
---|---|---|
committer | Bastien Bouclet | 2018-05-10 08:35:46 +0200 |
commit | 955e18c64874203b6f7156835d7d8458b6fb54de (patch) | |
tree | 8a165d5aabdb7acbfabd0ca7286485f3980d4014 /common/platform.cpp | |
parent | 82296866b4f79798d1fd5085bfd91fa2fb829d6a (diff) | |
download | scummvm-rg350-955e18c64874203b6f7156835d7d8458b6fb54de.tar.gz scummvm-rg350-955e18c64874203b6f7156835d7d8458b6fb54de.tar.bz2 scummvm-rg350-955e18c64874203b6f7156835d7d8458b6fb54de.zip |
COMMON: Use nullptr instead of NULL or 0 where appropriate
Diffstat (limited to 'common/platform.cpp')
-rw-r--r-- | common/platform.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/platform.cpp b/common/platform.cpp index 6898993b33..0049666912 100644 --- a/common/platform.cpp +++ b/common/platform.cpp @@ -56,7 +56,7 @@ const PlatformDescription g_platforms[] = { { "os2", "os2", "os2", "OS/2", kPlatformOS2 }, { "beos", "beos", "beos", "BeOS", kPlatformBeOS }, - { 0, 0, 0, "Default", kPlatformUnknown } + { nullptr, nullptr, nullptr, "Default", kPlatformUnknown } }; Platform parsePlatform(const String &str) { @@ -88,7 +88,7 @@ const char *getPlatformCode(Platform id) { if (l->id == id) return l->code; } - return 0; + return nullptr; } const char *getPlatformAbbrev(Platform id) { @@ -97,7 +97,7 @@ const char *getPlatformAbbrev(Platform id) { if (l->id == id) return l->abbrev; } - return 0; + return nullptr; } const char *getPlatformDescription(Platform id) { |