-rw-r--r-- | noncore/applets/autorotateapplet/autorotateimpl.cpp | 3 | ||||
-rw-r--r-- | noncore/applets/notesapplet/notesappletimpl.cpp | 2 | ||||
-rw-r--r-- | noncore/applets/wirelessapplet/wirelessappletimpl.cpp | 4 |
3 files changed, 7 insertions, 2 deletions
diff --git a/noncore/applets/autorotateapplet/autorotateimpl.cpp b/noncore/applets/autorotateapplet/autorotateimpl.cpp index 01d8a01..1b15c6d 100644 --- a/noncore/applets/autorotateapplet/autorotateimpl.cpp +++ b/noncore/applets/autorotateapplet/autorotateimpl.cpp | |||
@@ -23,17 +23,18 @@ int AutoRotateImpl::position() const { | |||
23 | } | 23 | } |
24 | 24 | ||
25 | QRESULT AutoRotateImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { | 25 | QRESULT AutoRotateImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { |
26 | *iface = 0; | 26 | *iface = 0; |
27 | if ( uuid == IID_QUnknown ) { | 27 | if ( uuid == IID_QUnknown ) { |
28 | *iface = this; | 28 | *iface = this; |
29 | } else if ( uuid == IID_TaskbarApplet ) { | 29 | } else if ( uuid == IID_TaskbarApplet ) { |
30 | *iface = this; | 30 | *iface = this; |
31 | } | 31 | } else |
32 | return QS_FALSE; | ||
32 | 33 | ||
33 | if ( *iface ) { | 34 | if ( *iface ) { |
34 | (*iface)->addRef(); | 35 | (*iface)->addRef(); |
35 | } | 36 | } |
36 | return QS_OK; | 37 | return QS_OK; |
37 | } | 38 | } |
38 | 39 | ||
39 | Q_EXPORT_INTERFACE() { | 40 | Q_EXPORT_INTERFACE() { |
diff --git a/noncore/applets/notesapplet/notesappletimpl.cpp b/noncore/applets/notesapplet/notesappletimpl.cpp index 0526bad..93de433 100644 --- a/noncore/applets/notesapplet/notesappletimpl.cpp +++ b/noncore/applets/notesapplet/notesappletimpl.cpp | |||
@@ -33,16 +33,18 @@ int NotesAppletImpl::position() const { | |||
33 | } | 33 | } |
34 | 34 | ||
35 | QRESULT NotesAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { | 35 | QRESULT NotesAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { |
36 | *iface = 0; | 36 | *iface = 0; |
37 | if ( uuid == IID_QUnknown ) | 37 | if ( uuid == IID_QUnknown ) |
38 | *iface = this; | 38 | *iface = this; |
39 | else if ( uuid == IID_TaskbarApplet ) | 39 | else if ( uuid == IID_TaskbarApplet ) |
40 | *iface = this; | 40 | *iface = this; |
41 | else | ||
42 | return QS_FALSE; | ||
41 | 43 | ||
42 | if ( *iface ) | 44 | if ( *iface ) |
43 | (*iface)->addRef(); | 45 | (*iface)->addRef(); |
44 | return QS_OK; | 46 | return QS_OK; |
45 | } | 47 | } |
46 | 48 | ||
47 | Q_EXPORT_INTERFACE() { | 49 | Q_EXPORT_INTERFACE() { |
48 | Q_CREATE_INSTANCE( NotesAppletImpl ) | 50 | Q_CREATE_INSTANCE( NotesAppletImpl ) |
diff --git a/noncore/applets/wirelessapplet/wirelessappletimpl.cpp b/noncore/applets/wirelessapplet/wirelessappletimpl.cpp index eb00459..8b7afcf 100644 --- a/noncore/applets/wirelessapplet/wirelessappletimpl.cpp +++ b/noncore/applets/wirelessapplet/wirelessappletimpl.cpp | |||
@@ -45,17 +45,19 @@ int WirelessAppletImpl::position() const | |||
45 | 45 | ||
46 | QRESULT WirelessAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 46 | QRESULT WirelessAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
47 | { | 47 | { |
48 | *iface = 0; | 48 | *iface = 0; |
49 | if ( uuid == IID_QUnknown ) | 49 | if ( uuid == IID_QUnknown ) |
50 | *iface = this; | 50 | *iface = this; |
51 | else if ( uuid == IID_TaskbarApplet ) | 51 | else if ( uuid == IID_TaskbarApplet ) |
52 | *iface = this; | 52 | *iface = this; |
53 | 53 | else | |
54 | return QS_FALSE; | ||
55 | |||
54 | if ( *iface ) | 56 | if ( *iface ) |
55 | (*iface)->addRef(); | 57 | (*iface)->addRef(); |
56 | return QS_OK; | 58 | return QS_OK; |
57 | } | 59 | } |
58 | 60 | ||
59 | Q_EXPORT_INTERFACE() | 61 | Q_EXPORT_INTERFACE() |
60 | { | 62 | { |
61 | Q_CREATE_INSTANCE( WirelessAppletImpl ) | 63 | Q_CREATE_INSTANCE( WirelessAppletImpl ) |