diff options
author | Adrian Frühwirth | 2018-06-29 00:22:23 +0200 |
---|---|---|
committer | Adrian Frühwirth | 2018-06-29 00:22:23 +0200 |
commit | 78fd3a9c4c035a1344c3b2f8057027adf18e0fcc (patch) | |
tree | 2e37b7acf66d8dca157bead42b2c84d3e1a86048 /engines/pink | |
parent | 52f60367229d300d0d9165c6b893cf283886d74a (diff) | |
download | scummvm-rg350-78fd3a9c4c035a1344c3b2f8057027adf18e0fcc.tar.gz scummvm-rg350-78fd3a9c4c035a1344c3b2f8057027adf18e0fcc.tar.bz2 scummvm-rg350-78fd3a9c4c035a1344c3b2f8057027adf18e0fcc.zip |
PINK: Don't unnecessarily cast away constness
Diffstat (limited to 'engines/pink')
-rw-r--r-- | engines/pink/file.cpp | 2 | ||||
-rw-r--r-- | engines/pink/resource_mgr.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/pink/file.cpp b/engines/pink/file.cpp index 7a760d1039..4a147454b0 100644 --- a/engines/pink/file.cpp +++ b/engines/pink/file.cpp @@ -97,7 +97,7 @@ void OrbFile::loadObject(Object *obj, ObjectDescription *objDesc) { } static int objDescComp(const void *a, const void *b) { - return scumm_stricmp((char *)a, (char *)b); + return scumm_stricmp((const char *)a, (const char *)b); } ObjectDescription *OrbFile::getObjDesc(const char *name) { diff --git a/engines/pink/resource_mgr.cpp b/engines/pink/resource_mgr.cpp index 65b6c00868..f9a24816be 100644 --- a/engines/pink/resource_mgr.cpp +++ b/engines/pink/resource_mgr.cpp @@ -62,7 +62,7 @@ Common::String ResourceMgr::loadText(Common::String &name) { } static int resDescComp(const void *a, const void *b) { - return scumm_stricmp((char *)a, (char *)b); + return scumm_stricmp((const char *)a, (const char *)b); } Common::SafeSeekableSubReadStream *ResourceMgr::getResourceStream(const Common::String &name) { |