[Kstars-devel] KDE/kdeedu/kstars/kstars
Akarsh Simha
akarshsimha at gmail.com
Sun Aug 23 01:33:54 CEST 2009
SVN commit 1014477 by asimha:
Discard pointer to KStars passed to the constructor of
KSPopupMenu. Use KStars::Instance() instead.
CCMAIL: kstars-devel at kde.org
M +5 -3 kspopupmenu.cpp
M +1 -1 kspopupmenu.h
M +1 -1 skymap.cpp
--- trunk/KDE/kdeedu/kstars/kstars/kspopupmenu.cpp #1014476:1014477
@@ -63,9 +63,11 @@
return name;
}
-KSPopupMenu::KSPopupMenu( KStars *_ks )
- : KMenu( _ks ), ks(_ks)
-{}
+KSPopupMenu::KSPopupMenu()
+ : KMenu( KStars::Instance() )
+{
+ ks = KStars::Instance();
+}
KSPopupMenu::~KSPopupMenu()
{
--- trunk/KDE/kdeedu/kstars/kstars/kspopupmenu.h #1014476:1014477
@@ -42,7 +42,7 @@
Q_OBJECT
public:
/**Default constructor*/
- KSPopupMenu( KStars *_ks );
+ KSPopupMenu();
/**Destructor (empty)*/
~KSPopupMenu();
--- trunk/KDE/kdeedu/kstars/kstars/skymap.cpp #1014476:1014477
@@ -105,7 +105,7 @@
sky = new QPixmap( width(), height() );
sky2 = new QPixmap( width(), height() );
- pmenu = new KSPopupMenu( KStars::Instance() );
+ pmenu = new KSPopupMenu();
//Initialize Transient label stuff
TransientTimeout = 100; //fade label color every 0.1 sec
More information about the Kstars-devel
mailing list