[Kstars-devel] Simplification KStarsData init.
Médéric Boquien
mboquien at free.fr
Tue Aug 11 16:56:13 CEST 2009
The initialisation code is likely the most awful part in kstars. I had a look
a few months ago trying to understand why some data were loaded several times.
I improved a bit but that was still not satisfying. So it would be great if
you could simplify the code. It is so convoluted for now it is hard to touch
it.
Médéric
On Tuesday 11 August 2009 10:39:18 Khudyakov Alexey wrote:
> Hello
>
> I think logic of KStarsData initialization is needlessly complex.
> KStarsData::slotInit is big switch which is called multiple times. This is
> made this way to be able to try to load data multiple times. Also it's
> quite difficult to understand.
>
> I propose to change logic to simple variant: if file unavailable complain
> about it and continue if file isn't vital and user asked to continue.
>
> This allows for simple and easier to understand code.
>
> --
> Khudyakov Alexey
> _______________________________________________
> Kstars-devel mailing list
> Kstars-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kstars-devel
More information about the Kstars-devel
mailing list