Diffstat (limited to 'core/applets/cardmon/cardmonimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/cardmon/cardmonimpl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/applets/cardmon/cardmonimpl.cpp b/core/applets/cardmon/cardmonimpl.cpp index 0aa55de..265214e 100644 --- a/core/applets/cardmon/cardmonimpl.cpp +++ b/core/applets/cardmon/cardmonimpl.cpp | |||
@@ -18,23 +18,25 @@ QWidget *CardMonitorImpl::applet( QWidget *parent ) { | |||
18 | } | 18 | } |
19 | 19 | ||
20 | int CardMonitorImpl::position() const { | 20 | int CardMonitorImpl::position() const { |
21 | return 7; | 21 | return 7; |
22 | } | 22 | } |
23 | 23 | ||
24 | QRESULT CardMonitorImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { | 24 | QRESULT CardMonitorImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { |
25 | *iface = 0; | 25 | *iface = 0; |
26 | if ( uuid == IID_QUnknown ) { | 26 | if ( uuid == IID_QUnknown ) { |
27 | *iface = this; | 27 | *iface = this; |
28 | } else if ( uuid == IID_TaskbarApplet ) { | 28 | } else if ( uuid == IID_TaskbarApplet ) { |
29 | *iface = this; | 29 | *iface = this; |
30 | } else { | ||
31 | return QS_FALSE; | ||
30 | } | 32 | } |
31 | 33 | ||
32 | if ( *iface ) { | 34 | if ( *iface ) { |
33 | (*iface)->addRef(); | 35 | (*iface)->addRef(); |
34 | } | 36 | } |
35 | return QS_OK; | 37 | return QS_OK; |
36 | } | 38 | } |
37 | 39 | ||
38 | Q_EXPORT_INTERFACE() { | 40 | Q_EXPORT_INTERFACE() { |
39 | Q_CREATE_INSTANCE( CardMonitorImpl ) | 41 | Q_CREATE_INSTANCE( CardMonitorImpl ) |
40 | } | 42 | } |