aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorOri Avtalion2016-09-03 11:43:48 +0300
committerOri Avtalion2016-09-03 11:45:43 +0300
commit70ff8d6232d08f9bdf72d0bfedf09fbe4433abec (patch)
treebd6daa08a999e314bd8b0f26e08758dec4a1d616 /engines
parent9d4d4f6803252383b4488638092f004e6cc7a214 (diff)
downloadscummvm-rg350-70ff8d6232d08f9bdf72d0bfedf09fbe4433abec.tar.gz
scummvm-rg350-70ff8d6232d08f9bdf72d0bfedf09fbe4433abec.tar.bz2
scummvm-rg350-70ff8d6232d08f9bdf72d0bfedf09fbe4433abec.zip
SCUMM HE: Constify string parameter
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/he/intern_he.h2
-rw-r--r--engines/scumm/he/script_v72he.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/he/intern_he.h b/engines/scumm/he/intern_he.h
index 8a562ea7b5..bd3cdb2c57 100644
--- a/engines/scumm/he/intern_he.h
+++ b/engines/scumm/he/intern_he.h
@@ -291,7 +291,7 @@ public:
virtual byte *getStringAddress(ResId idx);
virtual int setupStringArray(int size);
- virtual int setupStringArrayFromString(char *cStr);
+ virtual int setupStringArrayFromString(const char *cStr);
virtual void getStringFromArray(int arrayNumber, char *buffer, int maxLength);
protected:
diff --git a/engines/scumm/he/script_v72he.cpp b/engines/scumm/he/script_v72he.cpp
index c764de7da1..a922af1671 100644
--- a/engines/scumm/he/script_v72he.cpp
+++ b/engines/scumm/he/script_v72he.cpp
@@ -230,7 +230,7 @@ int ScummEngine_v72he::setupStringArray(int size) {
return readVar(0);
}
-int ScummEngine_v72he::setupStringArrayFromString(char *cStr) {
+int ScummEngine_v72he::setupStringArrayFromString(const char *cStr) {
// this is PUI_ScummStringArrayFromCString() found in PUSERMAC.cpp
// I can see how its done up there in setupStringArray()
// yet I'd note that 'SCUMMVAR_user_reserved' var was used instead of 0