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/winexe_ne.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/winexe_ne.cpp')
-rw-r--r-- | common/winexe_ne.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/winexe_ne.cpp b/common/winexe_ne.cpp index ccf1fd17e5..2d46cb2554 100644 --- a/common/winexe_ne.cpp +++ b/common/winexe_ne.cpp @@ -30,7 +30,7 @@ namespace Common { NEResources::NEResources() { - _exe = 0; + _exe = nullptr; } NEResources::~NEResources() { @@ -40,7 +40,7 @@ NEResources::~NEResources() { void NEResources::clear() { if (_exe) { delete _exe; - _exe = 0; + _exe = nullptr; } _resources.clear(); @@ -270,14 +270,14 @@ const NEResources::Resource *NEResources::findResource(const WinResourceID &type if (it->type == type && it->id == id) return &*it; - return 0; + return nullptr; } SeekableReadStream *NEResources::getResource(const WinResourceID &type, const WinResourceID &id) { const Resource *res = findResource(type, id); if (!res) - return 0; + return nullptr; _exe->seek(res->offset); return _exe->readStream(res->size); |