]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/app/main.cpp
Bump copyright years.
[toast/confclerk.git] / src / app / main.cpp
index 17aca5b38eb27921b9aea148f83dce1e7a9f49e9..e67abfb5e92b2b732eca2c1acae87aba459fe41b 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2010 Ixonos Plc.
- * Copyright (C) 2011-2013 Philipp Spitzer, gregor herrmann, Stefan Stahl
+ * Copyright (C) 2011-2024 Philipp Spitzer, gregor herrmann, Stefan Stahl
  *
  * This file is part of ConfClerk.
  *
@@ -38,16 +38,16 @@ int main(int argc, char *argv[])
     QCoreApplication::setApplicationName("ConfClerk");
     QCoreApplication::setApplicationVersion(VERSION);
 
-    QWidget* window = new MainWindow;
+    MainWindow window;
 
     // If we were started with the parameters confernceid and eventid, show the corresponding event (alarm)
     if (argc >= 3) {
         QString conferenceIdStr = argv[1];
         QString eventIdStr = argv[2];
-        EventDialog dialog(conferenceIdStr.toInt(), eventIdStr.toInt(), window);
+        EventDialog dialog(conferenceIdStr.toInt(), eventIdStr.toInt(), &window);
         dialog.exec();
     }
-    window->show();
+    window.show();
 
     return a.exec();
 }