[Scummvm-cvs-logs] scummvm master -> 88c216e086ca181191a353745c1959b8774352eb
criezy
criezy at scummvm.org
Tue Feb 26 23:43:19 CET 2013
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:
88c216e086 DREAMWEB: Make some static arrays const
Commit: 88c216e086ca181191a353745c1959b8774352eb
https://github.com/scummvm/scummvm/commit/88c216e086ca181191a353745c1959b8774352eb
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2013-02-26T14:42:14-08:00
Commit Message:
DREAMWEB: Make some static arrays const
Changed paths:
engines/dreamweb/dreamweb.h
engines/dreamweb/monitor.cpp
diff --git a/engines/dreamweb/dreamweb.h b/engines/dreamweb/dreamweb.h
index c13a699..5746568 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 3bcb38d..8dba506 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",
More information about the Scummvm-git-logs
mailing list