[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/kstars/kstars
From: Akarsh Simha <akarshsimha () gmail ! com>
Date: 2011-01-06 9:26:00
Message-ID: 20110106092600.2EE25AC8B0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1212237 by asimha:
Remove redundant code. C++ delete operator does nothing if the pointer
is null.
M +0 -3 kstars.cpp
--- trunk/KDE/kdeedu/kstars/kstars/kstars.cpp #1212236:1212237
@@ -116,10 +116,7 @@
}
KStars *KStars::createInstance( bool doSplash, bool clockrun, const QString &startdate ) {
- if( pinstance ) {
delete pinstance;
- pinstance = 0;
- }
// pinstance is set directly in constructor.
new KStars( doSplash, clockrun, startdate );
Q_ASSERT( pinstance && "pinstance must be non NULL");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic