[Kstars-devel] branches/kstars/summer/kstars/kstars/skyobjects
Prakash Mohan
prak902000 at gmail.com
Sat May 9 01:24:52 CEST 2009
SVN commit 965464 by prakash:
Creating a "default" constructor for KSSun and KSMoon by making the KStarsData * argument optional.
CCMAIL: kstars-devel at kde.org
M +2 -2 ksmoon.h
M +2 -1 kssun.h
--- branches/kstars/summer/kstars/kstars/skyobjects/ksmoon.h #965463:965464
@@ -20,7 +20,7 @@
#include "ksplanetbase.h"
#include "dms.h"
-
+#include "kstarsdata.h"
/**@class KSMoon
*A subclass of SkyObject that provides information
*needed for the Moon. Specifically, KSMoon provides a moon-specific
@@ -39,7 +39,7 @@
/**
*Default constructor. Set name="Moon".
*/
- KSMoon(KStarsData *kd);
+ KSMoon(KStarsData *kd = KStarsData::Instance() );
/**Destructor (empty). */
~KSMoon();
--- branches/kstars/summer/kstars/kstars/skyobjects/kssun.h #965463:965464
@@ -20,6 +20,7 @@
#include <qstring.h>
#include "ksplanet.h"
+#include "kstarsdata.h"
/**@class KSSun
*Child class of KSPlanetBase; encapsulates information about the Sun.
@@ -36,7 +37,7 @@
*Sets Ecliptic coordinates appropriate for J2000.
*@param kd pointer to KStarsData object
*/
- KSSun( KStarsData *kd );
+ KSSun( KStarsData *kd = KStarsData::Instance() );
/**Destructor (empty)
*/
More information about the Kstars-devel
mailing list