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

Prakash Mohan prak902000 at gmail.com
Mon May 25 12:56:25 CEST 2009


SVN commit 972576 by prakash:

Removing the explicit SkyObject* casting for KSSun and KSMoon as they are subclasses of SkyObject.
Thanks Alexey! 

CCMAIL: kstars-devel at kde.org


 M  +2 -2      ksalmanac.cpp  


--- branches/kstars/summer/kstars/kstars/ksalmanac.cpp #972575:972576
@@ -50,8 +50,8 @@
 }
 
 void KSAlmanac::update() {
-    RiseSetTime( (SkyObject*)m_Sun, &SunRise, &SunSet, &SunRiseT, &SunSetT );
-    RiseSetTime( (SkyObject*)m_Moon, &MoonRise, &MoonSet, &MoonRiseT, &MoonSetT );
+    RiseSetTime( m_Sun, &SunRise, &SunSet, &SunRiseT, &SunSetT );
+    RiseSetTime( m_Moon, &MoonRise, &MoonSet, &MoonRiseT, &MoonSetT );
 }
 void KSAlmanac::RiseSetTime( SkyObject *o, double *riseTime, double *setTime, QTime *RiseTime, QTime *SetTime ) {
     //Compute Sun rise and set times


More information about the Kstars-devel mailing list