Skip to content

Commit

Permalink
AGOS: Made some static data const.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schickel committed Sep 7, 2011
1 parent 07ec502 commit 507b9a7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion engines/agos/animation.cpp
Expand Up @@ -137,7 +137,7 @@ void MoviePlayer::handleNextFrame() {
// Movie player for DXA movies
///////////////////////////////////////////////////////////////////////////////

const char * MoviePlayerDXA::_sequenceList[90] = {
const char *const MoviePlayerDXA::_sequenceList[90] = {
"agent32",
"Airlock",
"Badluck",
Expand Down
2 changes: 1 addition & 1 deletion engines/agos/animation.h
Expand Up @@ -73,7 +73,7 @@ class MoviePlayer {
};

class MoviePlayerDXA : public MoviePlayer, Video::DXADecoder {
static const char *_sequenceList[90];
static const char *const _sequenceList[90];
uint8 _sequenceNum;
public:
MoviePlayerDXA(AGOSEngine_Feeble *vm, const char *name);
Expand Down
2 changes: 1 addition & 1 deletion engines/agos/detection.cpp
Expand Up @@ -83,7 +83,7 @@ static const PlainGameDescriptor agosGames[] = {

#include "agos/detection_tables.h"

static const char *directoryGlobs[] = {
static const char *const directoryGlobs[] = {
"execute", // Used by Simon1 Acorn CD
0
};
Expand Down
2 changes: 1 addition & 1 deletion engines/agos/res_snd.cpp
Expand Up @@ -413,7 +413,7 @@ bool AGOSEngine::loadVGASoundFile(uint16 id, uint8 type) {
return true;
}

static const char *dimpSoundList[32] = {
static const char *const dimpSoundList[32] = {
"Beep",
"Birth",
"Boiling",
Expand Down
2 changes: 1 addition & 1 deletion engines/agos/string_pn.cpp
Expand Up @@ -68,7 +68,7 @@ void AGOSEngine_PN::uncomstr(char *c, uint32 x) {
*c = 0;
}

static const char *objectNames[30] = {
static const char *const objectNames[30] = {
"\0",
"Take \0",
"Inventory\r",
Expand Down
2 changes: 1 addition & 1 deletion engines/agos/verb_pn.cpp
Expand Up @@ -258,7 +258,7 @@ void AGOSEngine_PN::hitBox9(HitArea *ha) {
iconPage();
}

static const char *messageList[9] = {
static const char *const messageList[9] = {
"North\r",
"East\r",
"South\r",
Expand Down

0 comments on commit 507b9a7

Please sign in to comment.