diff options
author | Strangerke | 2016-03-22 07:07:47 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-10 09:54:21 +0200 |
commit | 5ecf00826028b4d3ee6d64f1a4fe67839b34bc43 (patch) | |
tree | a77decc20ca050cf274a96b8eb7cd052c0461bf4 /engines/gnap/resource.h | |
parent | c4f5dd0209a42ef5d3f6cfe81a83c98f0d9853f5 (diff) | |
download | scummvm-rg350-5ecf00826028b4d3ee6d64f1a4fe67839b34bc43.tar.gz scummvm-rg350-5ecf00826028b4d3ee6d64f1a4fe67839b34bc43.tar.bz2 scummvm-rg350-5ecf00826028b4d3ee6d64f1a4fe67839b34bc43.zip |
GNAP: Use nullptr instead of 0 for some pointers
Diffstat (limited to 'engines/gnap/resource.h')
-rw-r--r-- | engines/gnap/resource.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gnap/resource.h b/engines/gnap/resource.h index 2ae933f3f7..20dd8d4192 100644 --- a/engines/gnap/resource.h +++ b/engines/gnap/resource.h @@ -169,13 +169,13 @@ protected: CacheMapIterator it = _cache.find(resourceId); if (it != _cache.end()) return it->_value; - return 0; + return nullptr; } ResourceClass *load(int resourceId) { if (_dat->getResourceType(resourceId) != ResourceType) { error("ResourceCache::load() Wrong resource type: Expected %d, got %d", ResourceType, _dat->getResourceType(resourceId)); - return 0; + return nullptr; } byte *resourceData = _dat->loadResource(resourceId); uint32 resourceSize = _dat->getResourceSize(resourceId); |