From 04e76156efa0946586bf0f7f1353f2a0cf469f61 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 3 Feb 2007 18:09:09 +0000 Subject: Change s_appName from Common::String to const char * on all platforms svn-id: r25354 --- base/commandLine.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'base') diff --git a/base/commandLine.cpp b/base/commandLine.cpp index 06d08d05fa..8ef899414e 100644 --- a/base/commandLine.cpp +++ b/base/commandLine.cpp @@ -133,11 +133,7 @@ static const char HELP_STRING[] = ; #endif -#if !(defined(PALMOS_ARM) || defined(PALMOS_DEBUG) || defined(__GP32__) || defined (__SYMBIAN32__)) -static Common::String s_appName("scummvm"); -#else static const char *s_appName = "scummvm"; -#endif static void usage(const char *s, ...) GCC_PRINTF(1, 2); @@ -150,7 +146,7 @@ static void usage(const char *s, ...) { va_end(va); #if !(defined(PALMOS_ARM) || defined(PALMOS_DEBUG) || defined(__GP32__) || defined (__SYMBIAN32__)) - printf(USAGE_STRING, s_appName.c_str(), buf, s_appName.c_str(), s_appName.c_str()); + printf(USAGE_STRING, s_appName, buf, s_appName, s_appName); #endif exit(1); } @@ -628,11 +624,7 @@ bool processSettings(Common::String &command, Common::StringMap &settings) { printf("Features compiled in: %s\n", gScummVMFeatures); return false; } else if (command == "help") { -#if !(defined(PALMOS_ARM) || defined(PALMOS_DEBUG) || defined(__GP32__) || defined(__SYMBIAN32__)) - printf(HELP_STRING, s_appName.c_str()); -#else printf(HELP_STRING, s_appName); -#endif return false; } #ifdef DETECTOR_TESTING_HACK -- cgit v1.2.3