]> git.sesse.net Git - kdenlive/blobdiff - src/main.cpp
Reindent all source files
[kdenlive] / src / main.cpp
index 908c9ce875b0d5bdd5a315d852f5dd51ff7076c2..c1a75e7941dd74bb3e12779423cefeba7cc43f57 100644 (file)
@@ -2,32 +2,30 @@
 #include <KAboutData>
 #include <KCmdLineArgs>
 #include <KUrl> //new
+
 #include "mainwindow.h"
-int main (int argc, char *argv[])
-{
-  KAboutData aboutData( "kdenlive", "kdenlive",
-      ki18n("Kdenlive"), "1.0",
-      ki18n("A simple text area which can load and save."),
-      KAboutData::License_GPL,
-      ki18n("Copyright (c) 2007 Developer") );
-  KCmdLineArgs::init( argc, argv, &aboutData );
-  KCmdLineOptions options; //new
-  options.add("+[file]", ki18n("Document to open")); //new
-  KCmdLineArgs::addCmdLineOptions(options); //new
-  KApplication app;
 
-  MainWindow* window = new MainWindow();
-  window->show();
-  KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); //new
-  if(args->count()) //new
-  {
-    window->openFile(args->url(0)); //new
-  }
-  return app.exec();
+int main(int argc, char *argv[]) {
+    KAboutData aboutData("kdenlive", "kdenlive",
+                         ki18n("Kdenlive"), "1.0",
+                         ki18n("A simple text area which can load and save."),
+                         KAboutData::License_GPL,
+                         ki18n("Copyright (c) 2007 Developer"));
+    KCmdLineArgs::init(argc, argv, &aboutData);
+
+    KCmdLineOptions options; //new
+    options.add("+[file]", ki18n("Document to open")); //new
+    KCmdLineArgs::addCmdLineOptions(options); //new
+
+    KApplication app;
+
+    MainWindow* window = new MainWindow();
+    window->show();
+
+    KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); //new
+    if (args->count()) { //new
+        window->openFile(args->url(0)); //new
+    }
+
+    return app.exec();
 }