aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb
diff options
context:
space:
mode:
authorThierry Crozat2013-02-26 22:41:13 +0000
committerThierry Crozat2013-02-26 22:42:14 +0000
commit88c216e086ca181191a353745c1959b8774352eb (patch)
treee5c03a0738903655c14f680a1562f48eb5eeca7a /engines/dreamweb
parent20fefb64e5685e2d98cd86754e59749bbe7a2b21 (diff)
downloadscummvm-rg350-88c216e086ca181191a353745c1959b8774352eb.tar.gz
scummvm-rg350-88c216e086ca181191a353745c1959b8774352eb.tar.bz2
scummvm-rg350-88c216e086ca181191a353745c1959b8774352eb.zip
DREAMWEB: Make some static arrays const
Diffstat (limited to 'engines/dreamweb')
-rw-r--r--engines/dreamweb/dreamweb.h2
-rw-r--r--engines/dreamweb/monitor.cpp12
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/dreamweb/dreamweb.h b/engines/dreamweb/dreamweb.h
index c13a6995bf..5746568e4e 100644
--- a/engines/dreamweb/dreamweb.h
+++ b/engines/dreamweb/dreamweb.h
@@ -513,7 +513,7 @@ public:
void dirCom();
void useMon();
bool execCommand();
- int findCommand(const char* cmdList[]);
+ int findCommand(const char *const cmdList[]);
// from newplace.cpp
void getUnderCentre();
diff --git a/engines/dreamweb/monitor.cpp b/engines/dreamweb/monitor.cpp
index 3bcb38d074..8dba506ca6 100644
--- a/engines/dreamweb/monitor.cpp
+++ b/engines/dreamweb/monitor.cpp
@@ -105,7 +105,7 @@ void DreamWebEngine::useMon() {
workToScreenM();
}
-int DreamWebEngine::findCommand(const char* cmdList[]) {
+int DreamWebEngine::findCommand(const char *const cmdList[]) {
// Loop over all commands in the list and see if we get a match
int cmd = 0;
while (cmdList[cmd] != NULL) {
@@ -126,7 +126,7 @@ int DreamWebEngine::findCommand(const char* cmdList[]) {
}
bool DreamWebEngine::execCommand() {
- static const char *comlist[] = {
+ static const char *const comlist[] = {
"EXIT",
"HELP",
"LIST",
@@ -136,7 +136,7 @@ bool DreamWebEngine::execCommand() {
NULL
};
- static const char *comlistFR[] = {
+ static const char *const comlistFR[] = {
"SORTIR",
"AIDE",
"LISTE",
@@ -146,7 +146,7 @@ bool DreamWebEngine::execCommand() {
NULL
};
- static const char *comlistDE[] = {
+ static const char *const comlistDE[] = {
"ENDE",
"HILFE",
"LISTE",
@@ -155,8 +155,8 @@ bool DreamWebEngine::execCommand() {
"DATEN",
NULL
};
-
- static const char *comlistIT[] = {
+
+ static const char *const comlistIT[] = {
"ESCI",
"AIUTO",
"ELENCA",