[Scummvm-git-logs] scummvm master -> e1c2b7da9b6bc79dd29b490064db393e4cdcb610
sluicebox
22204938+sluicebox at users.noreply.github.com
Wed Aug 4 04:42:45 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
e1c2b7da9b SCI: ResourceManager::testResource const correctness
Commit: e1c2b7da9b6bc79dd29b490064db393e4cdcb610
https://github.com/scummvm/scummvm/commit/e1c2b7da9b6bc79dd29b490064db393e4cdcb610
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2021-08-03T23:38:08-05:00
Commit Message:
SCI: ResourceManager::testResource const correctness
Changed paths:
engines/sci/resource/resource.cpp
engines/sci/resource/resource.h
diff --git a/engines/sci/resource/resource.cpp b/engines/sci/resource/resource.cpp
index a192e1effa..3b5020b48b 100644
--- a/engines/sci/resource/resource.cpp
+++ b/engines/sci/resource/resource.cpp
@@ -630,7 +630,7 @@ void ResourceSource::loadResource(ResourceManager *resMan, Resource *res) {
resMan->disposeVolumeFileStream(fileStream, this);
}
-Resource *ResourceManager::testResource(ResourceId id) {
+Resource *ResourceManager::testResource(const ResourceId &id) const {
return _resMap.getValOrDefault(id, NULL);
}
diff --git a/engines/sci/resource/resource.h b/engines/sci/resource/resource.h
index 5add772d99..433c5475f2 100644
--- a/engines/sci/resource/resource.h
+++ b/engines/sci/resource/resource.h
@@ -381,7 +381,7 @@ public:
* @param id Id of the resource to check
* @return non-NULL if the resource exists, NULL otherwise
*/
- Resource *testResource(ResourceId id);
+ Resource *testResource(const ResourceId &id) const;
/**
* Returns a list of all resources of the specified type.
More information about the Scummvm-git-logs
mailing list