diff options
author | Max Horn | 2003-07-03 22:06:13 +0000 |
---|---|---|
committer | Max Horn | 2003-07-03 22:06:13 +0000 |
commit | 3ed9aae095b4ed2aab2c3d7a43600bd2bb31d53b (patch) | |
tree | c5cb5907a7e0101e03799c29e57bdf33f5ab94ff | |
parent | c60e1aeb86e61b9f29227b773ef98aeac6381f92 (diff) | |
download | scummvm-rg350-3ed9aae095b4ed2aab2c3d7a43600bd2bb31d53b.tar.gz scummvm-rg350-3ed9aae095b4ed2aab2c3d7a43600bd2bb31d53b.tar.bz2 scummvm-rg350-3ed9aae095b4ed2aab2c3d7a43600bd2bb31d53b.zip |
const correctness
svn-id: r8727
-rw-r--r-- | backends/midi/adlib.cpp | 2 | ||||
-rw-r--r-- | common/gameDetector.cpp | 2 | ||||
-rw-r--r-- | common/gameDetector.h | 2 | ||||
-rw-r--r-- | scumm/debugger.cpp | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/backends/midi/adlib.cpp b/backends/midi/adlib.cpp index 554a053dc2..39349a6220 100644 --- a/backends/midi/adlib.cpp +++ b/backends/midi/adlib.cpp @@ -422,7 +422,7 @@ static byte map_gm_to_fm [128][30] = { struct PercussionMapEntry { byte _key; // 0 means no map data - char *_name; + const char *_name; byte _instrument [30]; }; diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp index c17c78d31c..f228d9173e 100644 --- a/common/gameDetector.cpp +++ b/common/gameDetector.cpp @@ -642,7 +642,7 @@ int GameDetector::detectMain() { if (!_gameDataPath) { warning("No path was provided. Assuming the data files are in the current directory"); - _gameDataPath = ""; + _gameDataPath = strdup(""); #ifndef __PALM_OS__ // add last slash also in File::fopenNoCase, so this is not needed } else if (_gameDataPath[strlen(_gameDataPath)-1] != '/' #ifdef __MORPHOS__ diff --git a/common/gameDetector.h b/common/gameDetector.h index d9e5b104a5..697d05c7c4 100644 --- a/common/gameDetector.h +++ b/common/gameDetector.h @@ -70,7 +70,7 @@ struct VersionSettings { ADLIB_NEVER = 3 } adlib; uint32 features; - char *detectname; + const char *detectname; }; struct MusicDriver { diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp index 74d3aef13c..a49e1fcb5f 100644 --- a/scumm/debugger.cpp +++ b/scumm/debugger.cpp @@ -900,7 +900,7 @@ void ScummDebugger::drawBox(int box) { } bool ScummDebugger::Cmd_PrintDraft(int argc, const char **argv) { - char *names[] = { + const char *names[] = { "Opening", "Straw to Gold", "Dyeing", "Night Vision", "Twisting", "Sleep", "Emptying", "Invisibility", "Terror", @@ -913,7 +913,7 @@ bool ScummDebugger::Cmd_PrintDraft(int argc, const char **argv) { 73, 19274, 76, 77, 20302, 20816, 21330, 84 }; - char *notes = "cdefgabC"; + const char *notes = "cdefgabC"; int i, base, draft; if (_s->_gameId != GID_LOOM && _s->_gameId != GID_LOOM256) { |