Clean-up
authorSami Rämö <sami.ramo@ixonos.com>
Fri, 13 Aug 2010 07:50:49 +0000 (10:50 +0300)
committerSami Rämö <sami.ramo@ixonos.com>
Fri, 13 Aug 2010 07:50:49 +0000 (10:50 +0300)
 - Removed m_app data member from SituareEngine because it was not
   needed

src/engine/engine.cpp
src/engine/engine.h
src/main.cpp

index 43a868e..0d46b40 100644 (file)
@@ -62,11 +62,10 @@ SituareEngine::SituareEngine()
     m_ui = new MainWindow;
     m_ui->updateItemVisibility();
 
-    /// @todo m_app data member is not required
-    m_app = static_cast<Application *>(qApp);
-    m_app->registerWindow(m_ui->winId());
+    Application *application = static_cast<Application *>(qApp);
+    application->registerWindow(m_ui->winId());
 
-    connect(m_app, SIGNAL(topmostWindowChanged(bool)),
+    connect(application, SIGNAL(topmostWindowChanged(bool)),
             this, SLOT(topmostWindowChanged(bool)));
 
     m_networkAccessManager = new NetworkAccessManager(this);
index e0e2fcb..defb0f2 100644 (file)
@@ -351,7 +351,6 @@ private:
 
     QTimer *m_automaticUpdateIntervalTimer; ///< Automatic update interval timer
 
-    Application *m_app;                              ///< Pointer to Application
     FacebookAuthentication *m_facebookAuthenticator; ///< Instance for facebook authenticator
     GeocodingService *m_geocodingService;            ///< Instance of the geocoding service
     GeoCoordinate m_lastUpdatedGPSPosition;          ///< Last updated GPS position
index f777f96..9fac43e 100644 (file)
@@ -19,7 +19,6 @@
     USA.
  */
 
-///< @todo remove QtGui include
 #include <QLocale>
 #include <QtGui>
 #include <QTranslator>