[vlmc-devel] vlmc.cpp: cosmetics

Yikai Lu git at videolan.org
Sat Jun 10 04:23:23 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Jun 10 11:05:54 2017 +0900| [981beff8ebb78a8d180fa6f39351d82b6d78edce] | committer: Yikai Lu

vlmc.cpp: cosmetics

> https://code.videolan.org/videolan/vlmc/commit/981beff8ebb78a8d180fa6f39351d82b6d78edce
---

 src/Main/vlmc.cpp | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/Main/vlmc.cpp b/src/Main/vlmc.cpp
index cd629516..4fc54779 100644
--- a/src/Main/vlmc.cpp
+++ b/src/Main/vlmc.cpp
@@ -105,23 +105,24 @@ main( int argc, char **argv )
 #else
     bool gui = false;
 #endif
+
     /* Check for command arguments */
-    for( int i = 1; i < argc; i++ )
+    for ( int i = 1; i < argc; i++ )
     {
         QString arg = argv[i];
 
-        if( arg == "--help" || arg == "-?" )
+        if ( arg == "--help" || arg == "-?" )
         {
-            ::usage( QString(argv[0]) );
+            ::usage( QString( argv[0] ) );
             return 2;
         }
-        else if( arg == "--version" )
+        else if ( arg == "--version" )
         {
             ::version();
             return 2;
         }
 #ifdef HAVE_GUI
-        else if( arg == "--no-gui" )
+        else if ( arg == "--no-gui" )
             gui = false;
 #endif
     }



More information about the Vlmc-devel mailing list