Bug 1488679 - nsAppRunner.cpp: Ride along - Move to the correct style r=glandium
authorSylvestre Ledru <sledru@mozilla.com>
Wed, 13 Feb 2019 00:18:45 +0100
changeset 458727 c7f5753a2c71e0d93f19fce8711852c6fbe53f95
parent 458726 3a58833843ab6272d9d7b4331a81ec5c529a047c
child 458728 1f7d1d6bf61de6fd419cd83933012a377838dfcb
push id35546
push userrmaries@mozilla.com
push dateWed, 13 Feb 2019 04:27:59 +0000
treeherdermozilla-central@636d2c00234d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1488679
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1488679 - nsAppRunner.cpp: Ride along - Move to the correct style r=glandium
toolkit/xre/nsAppRunner.cpp
--- a/toolkit/xre/nsAppRunner.cpp
+++ b/toolkit/xre/nsAppRunner.cpp
@@ -1523,19 +1523,23 @@ static void DumpHelp() {
 
   // this works, but only after the components have registered.  so if you drop
   // in a new command line handler, --help won't not until the second run. out
   // of the bug, because we ship a component.reg file, it works correctly.
   DumpArbitraryHelp();
 }
 
 static inline void DumpVersion() {
-  if (gAppData->vendor) printf("%s ", (const char*)gAppData->vendor);
+  if (gAppData->vendor) {
+    printf("%s ", (const char*)gAppData->vendor);
+  }
   printf("%s %s", (const char*)gAppData->name, (const char*)gAppData->version);
-  if (gAppData->copyright) printf(", %s", (const char*)gAppData->copyright);
+  if (gAppData->copyright) {
+    printf(", %s", (const char*)gAppData->copyright);
+  }
   printf("\n");
 }
 
 #if defined(MOZ_WIDGET_GTK)
 static RemoteResult ParseRemoteCommandLine(nsCString& program,
                                            const char** profile,
                                            const char** username) {
   ArgResult ar;