[Kstars-devel] branches/kstars/summer/kstars/kstars/tools

Prakash Mohan prak902000 at gmail.com
Sun May 31 14:08:15 CEST 2009


SVN commit 975840 by prakash:

Making the function contains an inline function and adding it in the header file.

CCMAIL: kstars-devel at kde.org


 M  +0 -5      observinglist.cpp  
 M  +1 -1      observinglist.h  


--- branches/kstars/summer/kstars/kstars/tools/observinglist.cpp #975839:975840
@@ -193,11 +193,6 @@
 //    ui->MiniButton->hide();
 }
 
-bool ObservingList::contains(  SkyObject *q ) {
-    return obsList().contains( q );    
-}
-
-
 //SLOTS
 
 void ObservingList::slotAddObject( SkyObject *obj, bool session, bool update ) {
--- branches/kstars/summer/kstars/kstars/tools/observinglist.h #975839:975840
@@ -87,7 +87,7 @@
     /**@return true if the object is in the observing list
         *@p o pointer to the object to test.
         */
-    bool contains( SkyObject *o );
+    inline bool contains( SkyObject *o ) { return m_ObservingList.contains( o ); }
 
     /**@return true if the window is in its default "large" state.
         */


More information about the Kstars-devel mailing list