瀏覽代碼

Fixed some silly warnings

Tobias Hieta 9 年之前
父節點
當前提交
abab861b6a
共有 2 個文件被更改,包括 7 次插入3 次删除
  1. 5 3
      src/main.cpp
  2. 2 0
      src/system/UpdateManager.cpp

+ 5 - 3
src/main.cpp

@@ -183,8 +183,10 @@ int main(int argc, char *argv[])
 {
   try
   {
-    for (int n = 1; n < argc; n++) {
-      if (strcmp(argv[n], "--licenses") == 0) {
+    for (int n = 1; n < argc; n++)
+    {
+      if (strcmp(argv[n], "--licenses") == 0)
+      {
         QFile licenses(":/misc/licenses.txt");
         licenses.open(QIODevice::ReadOnly | QIODevice::Text);
         QByteArray contents = licenses.readAll();
@@ -196,7 +198,7 @@ int main(int argc, char *argv[])
     int newArgc = argc;
     char **newArgv = appendCommandLineArguments(&newArgc, argv);
 
-    // Supress SSL related warnings on OSX
+    // Suppress SSL related warnings on OSX
     // See https://bugreports.qt.io/browse/QTBUG-43173 for more info
     //
 #ifdef Q_OS_MAC

+ 2 - 0
src/system/UpdateManager.cpp

@@ -67,7 +67,9 @@ QString UpdateManager::HaveUpdate()
     {
       QLOG_DEBUG() << "Removing old update packages in dir:" << dir;
       if (!packageDir.removeRecursively())
+      {
         QLOG_WARN() << "Failed to remove old update packages in dir:" << dir;
+      }
     }
   }