[Kstars-devel] Remove KStarsData from KSPlanetBase and subclasses

Akarsh Simha akarshsimha at gmail.com
Thu Jun 4 14:07:31 CEST 2009


> Hello
> 
> Since KStarsData is singleton there is no need to carry pointer to it in KSPlanetBase and its subclasses. 
> 
> Proposed change consists in removal of KStarsData* field from KSPlanetBase, KSAsteroids, KSComet and removal KStarsData* parameter from constructors.
> 
> However extensive this change may appear it's difficult to do wrong because of compiler checks. 

Right. Same case with the KStars class (I guess I recently made it
singleton).

Regards
Akarsh


More information about the Kstars-devel mailing list