-rw-r--r-- | kalarmd/simplealarmdaemonapplet.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kalarmd/simplealarmdaemonapplet.cpp b/kalarmd/simplealarmdaemonapplet.cpp index 3277036..73b1e07 100644 --- a/kalarmd/simplealarmdaemonapplet.cpp +++ b/kalarmd/simplealarmdaemonapplet.cpp | |||
@@ -15,5 +15,5 @@ SimpleAlarmDaemonApplet::SimpleAlarmDaemonApplet() | |||
15 | SimpleAlarmDaemonApplet::~SimpleAlarmDaemonApplet() | 15 | SimpleAlarmDaemonApplet::~SimpleAlarmDaemonApplet() |
16 | { | 16 | { |
17 | //delete mApplet; | 17 | delete mApplet; |
18 | mApplet = 0; | 18 | mApplet = 0; |
19 | } | 19 | } |
@@ -42,5 +42,4 @@ int SimpleAlarmDaemonApplet::position() const | |||
42 | QRESULT SimpleAlarmDaemonApplet::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 42 | QRESULT SimpleAlarmDaemonApplet::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
43 | { | 43 | { |
44 | // qDebug(" SimpleAlarmDaemonApplet::queryInterface "); | ||
45 | *iface = 0; | 44 | *iface = 0; |
46 | if ( uuid == IID_QUnknown ) | 45 | if ( uuid == IID_QUnknown ) |
@@ -48,10 +47,9 @@ QRESULT SimpleAlarmDaemonApplet::queryInterface( const QUuid &uuid, QUnknownInte | |||
48 | else if ( uuid == IID_TaskbarApplet ) | 47 | else if ( uuid == IID_TaskbarApplet ) |
49 | *iface = this; | 48 | *iface = this; |
50 | |||
51 | if ( *iface ) { | 49 | if ( *iface ) { |
52 | (*iface)->addRef(); | 50 | (*iface)->addRef(); |
53 | return QS_OK; | 51 | return QS_OK; |
54 | } | 52 | } |
55 | return QE_NOINTERFACE; | 53 | return QS_FALSE; |
56 | } | 54 | } |
57 | Q_EXPORT_INTERFACE() | 55 | Q_EXPORT_INTERFACE() |