src/main/qtopia/SDL_qtopia_main.cc
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
     1.1 --- a/src/main/qtopia/SDL_qtopia_main.cc	Mon May 29 03:53:21 2006 +0000
     1.2 +++ b/src/main/qtopia/SDL_qtopia_main.cc	Mon May 29 04:04:35 2006 +0000
     1.3 @@ -17,40 +17,40 @@
     1.4  // I'm guessing this will also clean up the taskbar in the Sharp version
     1.5  // of Qtopia.
     1.6  static inline void
     1.7 -cleanupQCop ()
     1.8 +cleanupQCop()
     1.9  {
    1.10 -    QString appname (qApp->argv ()[0]);
    1.11 -    int slash = appname.findRev ("/");
    1.12 +    QString appname(qApp->argv()[0]);
    1.13 +    int slash = appname.findRev("/");
    1.14      if (slash != -1) {
    1.15 -        appname = appname.mid (slash + 1);
    1.16 +        appname = appname.mid(slash + 1);
    1.17      }
    1.18      QString cmd =
    1.19 -        QPEApplication::qpeDir () +
    1.20 +        QPEApplication::qpeDir() +
    1.21          "bin/qcop QPE/System 'closing(QString)' '" + appname + "'";
    1.22 -    system (cmd.latin1 ());
    1.23 +    system(cmd.latin1());
    1.24      cmd = "/tmp/qcop-msg-" + appname;
    1.25 -    unlink (cmd.latin1 ());
    1.26 +    unlink(cmd.latin1());
    1.27  }
    1.28  
    1.29  static QPEApplication *app;
    1.30  #endif
    1.31  
    1.32 -extern int SDL_main (int argc, char *argv[]);
    1.33 +extern int SDL_main(int argc, char *argv[]);
    1.34  
    1.35  int
    1.36 -main (int argc, char *argv[])
    1.37 +main(int argc, char *argv[])
    1.38  {
    1.39  #ifdef QWS
    1.40      // This initializes the Qtopia application. It needs to be done here
    1.41      // because it parses command line options.
    1.42 -    app = new QPEApplication (argc, argv);
    1.43 +    app = new QPEApplication(argc, argv);
    1.44      QWidget dummy;
    1.45 -    app->showMainWidget (&dummy);
    1.46 -    atexit (cleanupQCop);
    1.47 +    app->showMainWidget(&dummy);
    1.48 +    atexit(cleanupQCop);
    1.49  #endif
    1.50      // Exit here because if return is used, the application
    1.51      // doesn't seem to quit correctly.
    1.52 -    exit (SDL_main (argc, argv));
    1.53 +    exit(SDL_main(argc, argv));
    1.54  }
    1.55  
    1.56  /* vi: set ts=4 sw=4 expandtab: */