[haiku-commits] r37526 - haiku/trunk/src/servers/app

  • From: stefano.ceccherini@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 15 Jul 2010 09:32:15 +0200 (CEST)

Author: jackburton
Date: 2010-07-15 09:32:15 +0200 (Thu, 15 Jul 2010)
New Revision: 37526
Changeset: http://dev.haiku-os.org/changeset/37526

Modified:
   haiku/trunk/src/servers/app/ServerApp.cpp
   haiku/trunk/src/servers/app/ServerApp.h
Log:
ServerApp::Quit() was hiding MessageLooper::Quit() due to the default
paramenter, causing warnings when compiling with gcc4.


Modified: haiku/trunk/src/servers/app/ServerApp.cpp
===================================================================
--- haiku/trunk/src/servers/app/ServerApp.cpp   2010-07-15 07:28:44 UTC (rev 
37525)
+++ haiku/trunk/src/servers/app/ServerApp.cpp   2010-07-15 07:32:15 UTC (rev 
37526)
@@ -223,6 +223,13 @@
 }
 
 
+void
+ServerApp::Quit()
+{
+       Quit(-1);
+}
+
+
 /*!    \brief This quits the application and deletes it. You're not supposed
                to call its destructor directly.
 

Modified: haiku/trunk/src/servers/app/ServerApp.h
===================================================================
--- haiku/trunk/src/servers/app/ServerApp.h     2010-07-15 07:28:44 UTC (rev 
37525)
+++ haiku/trunk/src/servers/app/ServerApp.h     2010-07-15 07:32:15 UTC (rev 
37526)
@@ -48,8 +48,10 @@
        virtual                                         ~ServerApp();
 
                        status_t                        InitCheck();
-                       void                            Quit(sem_id 
shutdownSemaphore = -1);
 
+       virtual void                            Quit();
+                       void                            Quit(sem_id 
shutdownSemaphore);
+
        virtual port_id                         MessagePort() const { return 
fMessagePort; }
 
        /*!


Other related posts:

  • » [haiku-commits] r37526 - haiku/trunk/src/servers/app - stefano . ceccherini