argv should not be modified; make it plenty const.

svn-id: r39591
This commit is contained in:
Marcus Comstedt 2009-03-21 16:07:46 +00:00
parent e3ca4afb59
commit bce96bd55d
5 changed files with 6 additions and 6 deletions

View file

@ -281,7 +281,7 @@ void registerDefaults() {
}
Common::String parseCommandLine(Common::StringMap &settings, int argc, char **argv) {
Common::String parseCommandLine(Common::StringMap &settings, int argc, const char * const *argv) {
const char *s, *s2;
// argv[0] contains the name of the executable.
@ -710,7 +710,7 @@ static void runDetectorTest() {
#else // DISABLE_COMMAND_LINE
Common::String parseCommandLine(Common::StringMap &settings, int argc, char **argv) {
Common::String parseCommandLine(Common::StringMap &settings, int argc, const char * const *argv) {
return Common::String();
}