[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/kstars/kstars/tools
From: Alexey Khudyakov <alexey.skladnoy () gmail ! com>
Date: 2011-02-24 18:31:13
Message-ID: 20110224183113.B21C2AC8CF () svn ! kde ! org
[Download RAW message or body]
SVN commit 1222540 by khudyakov:
Create KSMoon object directly and without casts
M +1 -4 moonphasetool.cpp
--- trunk/KDE/kdeedu/kstars/kstars/tools/moonphasetool.cpp #1222539:1222540
@@ -17,14 +17,11 @@
#include "moonphasetool.h"
-#include "kstarsdata.h"
-#include "skyobjects/ksplanetbase.h"
-
MoonPhaseTool::MoonPhaseTool(QWidget *parentSplit)
: QFrame(parentSplit)
{
KStarsDateTime dtStart ( KStarsDateTime::currentDateTime() );
- m_Moon = (KSMoon *) KSPlanetBase::createPlanet( KSPlanetBase::MOON );
+ m_Moon = new KSMoon;
mpc = new MoonPhaseCalendar( *m_Moon );
gcw = new GenericCalendarWidget( *mpc, this );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic