Bug 569514 - graphicssystem cmdline argument does not work anymore. r=dougt
authorOleg Romashin <romaxa@gmail.com>
Wed, 02 Jun 2010 05:24:16 -0400
changeset 43006 954976d8dd3b2c787a3e8614b2a8807b3b511c93
parent 43005 5e3e8590b6e5e63d146f9d3d1b8444547b695a8b
child 43007 704e77dcb30342030c73fffc3955bc1656d227ba
push idunknown
push userunknown
push dateunknown
reviewersdougt
bugs569514
milestone1.9.3a5pre
Bug 569514 - graphicssystem cmdline argument does not work anymore. r=dougt
toolkit/xre/nsAppRunner.cpp
--- a/toolkit/xre/nsAppRunner.cpp
+++ b/toolkit/xre/nsAppRunner.cpp
@@ -3110,17 +3110,17 @@ XRE_main(int argc, char* argv[], const n
     nsCAutoString desktopStartupID;
     if (desktopStartupIDEnv) {
       desktopStartupID.Assign(desktopStartupIDEnv);
     }
 #endif
 
 #if defined(MOZ_WIDGET_QT)
     const char* qgraphicssystemARG = NULL;
-    ar = CheckArg("graphicssystem", PR_TRUE, &qgraphicssystemARG);
+    ar = CheckArg("graphicssystem", PR_TRUE, &qgraphicssystemARG, PR_FALSE);
     if (ar == ARG_FOUND)
       PR_SetEnv(PR_smprintf("MOZ_QT_GRAPHICSSYSTEM=%s", qgraphicssystemARG));
     QApplication app(gArgc, gArgv);
 #endif
 #if defined(MOZ_WIDGET_GTK2)
 #ifdef MOZ_MEMORY
     // Disable the slice allocator, since jemalloc already uses similar layout
     // algorithms, and using a sub-allocator tends to increase fragmentation.