AGOS: Made some static data const.

This commit is contained in:
Johannes Schickel 2011-09-08 00:38:39 +02:00
parent 07ec50224e
commit 507b9a75e7
6 changed files with 6 additions and 6 deletions

View file

@ -137,7 +137,7 @@ void MoviePlayer::handleNextFrame() {
// Movie player for DXA movies // Movie player for DXA movies
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
const char * MoviePlayerDXA::_sequenceList[90] = { const char *const MoviePlayerDXA::_sequenceList[90] = {
"agent32", "agent32",
"Airlock", "Airlock",
"Badluck", "Badluck",

View file

@ -73,7 +73,7 @@ protected:
}; };
class MoviePlayerDXA : public MoviePlayer, Video::DXADecoder { class MoviePlayerDXA : public MoviePlayer, Video::DXADecoder {
static const char *_sequenceList[90]; static const char *const _sequenceList[90];
uint8 _sequenceNum; uint8 _sequenceNum;
public: public:
MoviePlayerDXA(AGOSEngine_Feeble *vm, const char *name); MoviePlayerDXA(AGOSEngine_Feeble *vm, const char *name);

View file

@ -83,7 +83,7 @@ static const PlainGameDescriptor agosGames[] = {
#include "agos/detection_tables.h" #include "agos/detection_tables.h"
static const char *directoryGlobs[] = { static const char *const directoryGlobs[] = {
"execute", // Used by Simon1 Acorn CD "execute", // Used by Simon1 Acorn CD
0 0
}; };

View file

@ -413,7 +413,7 @@ bool AGOSEngine::loadVGASoundFile(uint16 id, uint8 type) {
return true; return true;
} }
static const char *dimpSoundList[32] = { static const char *const dimpSoundList[32] = {
"Beep", "Beep",
"Birth", "Birth",
"Boiling", "Boiling",

View file

@ -68,7 +68,7 @@ void AGOSEngine_PN::uncomstr(char *c, uint32 x) {
*c = 0; *c = 0;
} }
static const char *objectNames[30] = { static const char *const objectNames[30] = {
"\0", "\0",
"Take \0", "Take \0",
"Inventory\r", "Inventory\r",

View file

@ -258,7 +258,7 @@ void AGOSEngine_PN::hitBox9(HitArea *ha) {
iconPage(); iconPage();
} }
static const char *messageList[9] = { static const char *const messageList[9] = {
"North\r", "North\r",
"East\r", "East\r",
"South\r", "South\r",