-rw-r--r-- | core/applets/batteryapplet/batteryappletimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/cardmon/cardmonimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/clipboardapplet/clipboardappletimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/clockapplet/clockappletimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/homeapplet/home.cpp | 2 | ||||
-rw-r--r-- | core/applets/irdaapplet/irdaappletimpl.cpp | 4 | ||||
-rw-r--r-- | core/applets/logoutapplet/logout.cpp | 2 | ||||
-rw-r--r-- | core/applets/multikeyapplet/multikeyappletimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/restartapplet/restartappletimpl.cpp | 4 | ||||
-rw-r--r-- | core/applets/restartapplet2/restart.cpp | 2 | ||||
-rw-r--r-- | core/applets/rotateapplet/rotate.cpp | 2 | ||||
-rw-r--r-- | core/applets/screenshotapplet/screenshotappletimpl.cpp | 4 | ||||
-rw-r--r-- | core/applets/suspendapplet/suspend.cpp | 2 | ||||
-rw-r--r-- | core/applets/vmemo/vmemoimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/volumeapplet/volumeappletimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/vtapplet/vt.cpp | 2 | ||||
-rw-r--r-- | core/obex/obeximpl.cpp | 2 |
17 files changed, 37 insertions, 3 deletions
diff --git a/core/applets/batteryapplet/batteryappletimpl.cpp b/core/applets/batteryapplet/batteryappletimpl.cpp index 3f3079a..9ad0382 100644 --- a/core/applets/batteryapplet/batteryappletimpl.cpp +++ b/core/applets/batteryapplet/batteryappletimpl.cpp | |||
@@ -45,16 +45,18 @@ int BatteryAppletImpl::position() const | |||
45 | 45 | ||
46 | QRESULT BatteryAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 46 | QRESULT BatteryAppletImpl::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 | else | ||
54 | return QS_FALSE; | ||
53 | 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 | { |
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 | |||
@@ -22,16 +22,18 @@ int CardMonitorImpl::position() const { | |||
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 | ||
diff --git a/core/applets/clipboardapplet/clipboardappletimpl.cpp b/core/applets/clipboardapplet/clipboardappletimpl.cpp index 8080690..8fcf117 100644 --- a/core/applets/clipboardapplet/clipboardappletimpl.cpp +++ b/core/applets/clipboardapplet/clipboardappletimpl.cpp | |||
@@ -45,16 +45,18 @@ int ClipboardAppletImpl::position() const | |||
45 | 45 | ||
46 | QRESULT ClipboardAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 46 | QRESULT ClipboardAppletImpl::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 | else | ||
54 | return QS_FALSE; | ||
53 | 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 | { |
diff --git a/core/applets/clockapplet/clockappletimpl.cpp b/core/applets/clockapplet/clockappletimpl.cpp index 8bf1baf..2b9cc05 100644 --- a/core/applets/clockapplet/clockappletimpl.cpp +++ b/core/applets/clockapplet/clockappletimpl.cpp | |||
@@ -46,16 +46,18 @@ int ClockAppletImpl::position() const | |||
46 | #ifndef QT_NO_COMPONENT | 46 | #ifndef QT_NO_COMPONENT |
47 | QRESULT ClockAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 47 | QRESULT ClockAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
48 | { | 48 | { |
49 | *iface = 0; | 49 | *iface = 0; |
50 | if ( uuid == IID_QUnknown ) | 50 | if ( uuid == IID_QUnknown ) |
51 | *iface = this; | 51 | *iface = this; |
52 | else if ( uuid == IID_TaskbarApplet ) | 52 | else if ( uuid == IID_TaskbarApplet ) |
53 | *iface = this; | 53 | *iface = this; |
54 | else | ||
55 | return QS_FALSE; | ||
54 | 56 | ||
55 | if ( *iface ) | 57 | if ( *iface ) |
56 | (*iface)->addRef(); | 58 | (*iface)->addRef(); |
57 | return QS_OK; | 59 | return QS_OK; |
58 | } | 60 | } |
59 | 61 | ||
60 | Q_EXPORT_INTERFACE() | 62 | Q_EXPORT_INTERFACE() |
61 | { | 63 | { |
diff --git a/core/applets/homeapplet/home.cpp b/core/applets/homeapplet/home.cpp index 017de27..36307ab 100644 --- a/core/applets/homeapplet/home.cpp +++ b/core/applets/homeapplet/home.cpp | |||
@@ -66,16 +66,18 @@ void HomeApplet::activated ( ) | |||
66 | 66 | ||
67 | QRESULT HomeApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) | 67 | QRESULT HomeApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) |
68 | { | 68 | { |
69 | *iface = 0; | 69 | *iface = 0; |
70 | if ( uuid == IID_QUnknown ) | 70 | if ( uuid == IID_QUnknown ) |
71 | *iface = this; | 71 | *iface = this; |
72 | else if ( uuid == IID_MenuApplet ) | 72 | else if ( uuid == IID_MenuApplet ) |
73 | *iface = this; | 73 | *iface = this; |
74 | else | ||
75 | return QS_FALSE; | ||
74 | 76 | ||
75 | if ( *iface ) | 77 | if ( *iface ) |
76 | (*iface)-> addRef ( ); | 78 | (*iface)-> addRef ( ); |
77 | return QS_OK; | 79 | return QS_OK; |
78 | } | 80 | } |
79 | 81 | ||
80 | Q_EXPORT_INTERFACE( ) | 82 | Q_EXPORT_INTERFACE( ) |
81 | { | 83 | { |
diff --git a/core/applets/irdaapplet/irdaappletimpl.cpp b/core/applets/irdaapplet/irdaappletimpl.cpp index 02443db..3617698 100644 --- a/core/applets/irdaapplet/irdaappletimpl.cpp +++ b/core/applets/irdaapplet/irdaappletimpl.cpp | |||
@@ -45,17 +45,19 @@ int IrdaAppletImpl::position() const | |||
45 | 45 | ||
46 | QRESULT IrdaAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 46 | QRESULT IrdaAppletImpl::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( IrdaAppletImpl ) | 63 | Q_CREATE_INSTANCE( IrdaAppletImpl ) |
diff --git a/core/applets/logoutapplet/logout.cpp b/core/applets/logoutapplet/logout.cpp index 1769ae6..8d3cdba 100644 --- a/core/applets/logoutapplet/logout.cpp +++ b/core/applets/logoutapplet/logout.cpp | |||
@@ -106,16 +106,18 @@ void LogoutApplet::activated ( ) | |||
106 | 106 | ||
107 | QRESULT LogoutApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) | 107 | QRESULT LogoutApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) |
108 | { | 108 | { |
109 | *iface = 0; | 109 | *iface = 0; |
110 | if ( uuid == IID_QUnknown ) | 110 | if ( uuid == IID_QUnknown ) |
111 | *iface = this; | 111 | *iface = this; |
112 | else if ( uuid == IID_MenuApplet ) | 112 | else if ( uuid == IID_MenuApplet ) |
113 | *iface = this; | 113 | *iface = this; |
114 | else | ||
115 | return QS_FALSE; | ||
114 | 116 | ||
115 | if ( *iface ) | 117 | if ( *iface ) |
116 | (*iface)-> addRef ( ); | 118 | (*iface)-> addRef ( ); |
117 | return QS_OK; | 119 | return QS_OK; |
118 | } | 120 | } |
119 | 121 | ||
120 | Q_EXPORT_INTERFACE( ) | 122 | Q_EXPORT_INTERFACE( ) |
121 | { | 123 | { |
diff --git a/core/applets/multikeyapplet/multikeyappletimpl.cpp b/core/applets/multikeyapplet/multikeyappletimpl.cpp index 4644556..adf92c4 100644 --- a/core/applets/multikeyapplet/multikeyappletimpl.cpp +++ b/core/applets/multikeyapplet/multikeyappletimpl.cpp | |||
@@ -39,16 +39,18 @@ int MultikeyAppletImpl::position() const | |||
39 | #ifndef QT_NO_COMPONENT | 39 | #ifndef QT_NO_COMPONENT |
40 | QRESULT MultikeyAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 40 | QRESULT MultikeyAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
41 | { | 41 | { |
42 | *iface = 0; | 42 | *iface = 0; |
43 | if ( uuid == IID_QUnknown ) | 43 | if ( uuid == IID_QUnknown ) |
44 | *iface = this; | 44 | *iface = this; |
45 | else if ( uuid == IID_TaskbarApplet ) | 45 | else if ( uuid == IID_TaskbarApplet ) |
46 | *iface = this; | 46 | *iface = this; |
47 | else | ||
48 | return QS_FALSE; | ||
47 | 49 | ||
48 | if ( *iface ) | 50 | if ( *iface ) |
49 | (*iface)->addRef(); | 51 | (*iface)->addRef(); |
50 | return QS_OK; | 52 | return QS_OK; |
51 | } | 53 | } |
52 | 54 | ||
53 | Q_EXPORT_INTERFACE() | 55 | Q_EXPORT_INTERFACE() |
54 | { | 56 | { |
diff --git a/core/applets/restartapplet/restartappletimpl.cpp b/core/applets/restartapplet/restartappletimpl.cpp index e675c0b..5b0092d 100644 --- a/core/applets/restartapplet/restartappletimpl.cpp +++ b/core/applets/restartapplet/restartappletimpl.cpp | |||
@@ -46,17 +46,19 @@ int RestartAppletImpl::position() const | |||
46 | 46 | ||
47 | QRESULT RestartAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 47 | QRESULT RestartAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
48 | { | 48 | { |
49 | *iface = 0; | 49 | *iface = 0; |
50 | if ( uuid == IID_QUnknown ) | 50 | if ( uuid == IID_QUnknown ) |
51 | *iface = this; | 51 | *iface = this; |
52 | else if ( uuid == IID_TaskbarApplet ) | 52 | else if ( uuid == IID_TaskbarApplet ) |
53 | *iface = this; | 53 | *iface = this; |
54 | 54 | else | |
55 | return QS_FALSE; | ||
56 | |||
55 | if ( *iface ) | 57 | if ( *iface ) |
56 | (*iface)->addRef(); | 58 | (*iface)->addRef(); |
57 | return QS_OK; | 59 | return QS_OK; |
58 | } | 60 | } |
59 | 61 | ||
60 | Q_EXPORT_INTERFACE() | 62 | Q_EXPORT_INTERFACE() |
61 | { | 63 | { |
62 | Q_CREATE_INSTANCE( RestartAppletImpl ) | 64 | Q_CREATE_INSTANCE( RestartAppletImpl ) |
diff --git a/core/applets/restartapplet2/restart.cpp b/core/applets/restartapplet2/restart.cpp index caed9e5..576087b 100644 --- a/core/applets/restartapplet2/restart.cpp +++ b/core/applets/restartapplet2/restart.cpp | |||
@@ -88,16 +88,18 @@ void RestartApplet::activated ( ) | |||
88 | 88 | ||
89 | QRESULT RestartApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) | 89 | QRESULT RestartApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) |
90 | { | 90 | { |
91 | *iface = 0; | 91 | *iface = 0; |
92 | if ( uuid == IID_QUnknown ) | 92 | if ( uuid == IID_QUnknown ) |
93 | *iface = this; | 93 | *iface = this; |
94 | else if ( uuid == IID_MenuApplet ) | 94 | else if ( uuid == IID_MenuApplet ) |
95 | *iface = this; | 95 | *iface = this; |
96 | else | ||
97 | return QS_FALSE; | ||
96 | 98 | ||
97 | if ( *iface ) | 99 | if ( *iface ) |
98 | (*iface)-> addRef ( ); | 100 | (*iface)-> addRef ( ); |
99 | return QS_OK; | 101 | return QS_OK; |
100 | } | 102 | } |
101 | 103 | ||
102 | Q_EXPORT_INTERFACE( ) | 104 | Q_EXPORT_INTERFACE( ) |
103 | { | 105 | { |
diff --git a/core/applets/rotateapplet/rotate.cpp b/core/applets/rotateapplet/rotate.cpp index 906063e..b676c74 100644 --- a/core/applets/rotateapplet/rotate.cpp +++ b/core/applets/rotateapplet/rotate.cpp | |||
@@ -237,16 +237,18 @@ void RotateApplet::activated() | |||
237 | 237 | ||
238 | QRESULT RotateApplet::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 238 | QRESULT RotateApplet::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
239 | { | 239 | { |
240 | *iface = 0; | 240 | *iface = 0; |
241 | if ( uuid == IID_QUnknown ) | 241 | if ( uuid == IID_QUnknown ) |
242 | *iface = this; | 242 | *iface = this; |
243 | else if ( uuid == IID_MenuApplet ) | 243 | else if ( uuid == IID_MenuApplet ) |
244 | *iface = this; | 244 | *iface = this; |
245 | else | ||
246 | return QS_FALSE; | ||
245 | 247 | ||
246 | if ( *iface ) | 248 | if ( *iface ) |
247 | (*iface)->addRef(); | 249 | (*iface)->addRef(); |
248 | return QS_OK; | 250 | return QS_OK; |
249 | } | 251 | } |
250 | 252 | ||
251 | Q_EXPORT_INTERFACE() | 253 | Q_EXPORT_INTERFACE() |
252 | { | 254 | { |
diff --git a/core/applets/screenshotapplet/screenshotappletimpl.cpp b/core/applets/screenshotapplet/screenshotappletimpl.cpp index a537162..4a7512e 100644 --- a/core/applets/screenshotapplet/screenshotappletimpl.cpp +++ b/core/applets/screenshotapplet/screenshotappletimpl.cpp | |||
@@ -45,17 +45,19 @@ int ScreenshotAppletImpl::position() const | |||
45 | 45 | ||
46 | QRESULT ScreenshotAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 46 | QRESULT ScreenshotAppletImpl::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( ScreenshotAppletImpl ) | 63 | Q_CREATE_INSTANCE( ScreenshotAppletImpl ) |
diff --git a/core/applets/suspendapplet/suspend.cpp b/core/applets/suspendapplet/suspend.cpp index 4bdc8fb..63f16b8 100644 --- a/core/applets/suspendapplet/suspend.cpp +++ b/core/applets/suspendapplet/suspend.cpp | |||
@@ -66,16 +66,18 @@ void SuspendApplet::activated ( ) | |||
66 | 66 | ||
67 | QRESULT SuspendApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) | 67 | QRESULT SuspendApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) |
68 | { | 68 | { |
69 | *iface = 0; | 69 | *iface = 0; |
70 | if ( uuid == IID_QUnknown ) | 70 | if ( uuid == IID_QUnknown ) |
71 | *iface = this; | 71 | *iface = this; |
72 | else if ( uuid == IID_MenuApplet ) | 72 | else if ( uuid == IID_MenuApplet ) |
73 | *iface = this; | 73 | *iface = this; |
74 | else | ||
75 | return QS_FALSE; | ||
74 | 76 | ||
75 | if ( *iface ) | 77 | if ( *iface ) |
76 | (*iface)-> addRef ( ); | 78 | (*iface)-> addRef ( ); |
77 | return QS_OK; | 79 | return QS_OK; |
78 | } | 80 | } |
79 | 81 | ||
80 | Q_EXPORT_INTERFACE( ) | 82 | Q_EXPORT_INTERFACE( ) |
81 | { | 83 | { |
diff --git a/core/applets/vmemo/vmemoimpl.cpp b/core/applets/vmemo/vmemoimpl.cpp index ef4a3a6..71d47e5 100644 --- a/core/applets/vmemo/vmemoimpl.cpp +++ b/core/applets/vmemo/vmemoimpl.cpp | |||
@@ -42,16 +42,18 @@ int VMemoAppletImpl::position() const | |||
42 | 42 | ||
43 | QRESULT VMemoAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 43 | QRESULT VMemoAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
44 | { | 44 | { |
45 | *iface = 0; | 45 | *iface = 0; |
46 | if ( uuid == IID_QUnknown ) | 46 | if ( uuid == IID_QUnknown ) |
47 | *iface = this; | 47 | *iface = this; |
48 | else if ( uuid == IID_TaskbarApplet ) | 48 | else if ( uuid == IID_TaskbarApplet ) |
49 | *iface = this; | 49 | *iface = this; |
50 | else | ||
51 | return QS_FALSE; | ||
50 | 52 | ||
51 | if ( *iface ) | 53 | if ( *iface ) |
52 | (*iface)->addRef(); | 54 | (*iface)->addRef(); |
53 | return QS_OK; | 55 | return QS_OK; |
54 | } | 56 | } |
55 | 57 | ||
56 | Q_EXPORT_INTERFACE() | 58 | Q_EXPORT_INTERFACE() |
57 | { | 59 | { |
diff --git a/core/applets/volumeapplet/volumeappletimpl.cpp b/core/applets/volumeapplet/volumeappletimpl.cpp index 47506cc..80b3e74 100644 --- a/core/applets/volumeapplet/volumeappletimpl.cpp +++ b/core/applets/volumeapplet/volumeappletimpl.cpp | |||
@@ -46,16 +46,18 @@ int VolumeAppletImpl::position() const | |||
46 | 46 | ||
47 | QRESULT VolumeAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 47 | QRESULT VolumeAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
48 | { | 48 | { |
49 | *iface = 0; | 49 | *iface = 0; |
50 | if ( uuid == IID_QUnknown ) | 50 | if ( uuid == IID_QUnknown ) |
51 | *iface = this; | 51 | *iface = this; |
52 | else if ( uuid == IID_TaskbarApplet ) | 52 | else if ( uuid == IID_TaskbarApplet ) |
53 | *iface = this; | 53 | *iface = this; |
54 | else | ||
55 | return QS_FALSE; | ||
54 | 56 | ||
55 | if ( *iface ) | 57 | if ( *iface ) |
56 | (*iface)->addRef(); | 58 | (*iface)->addRef(); |
57 | return QS_OK; | 59 | return QS_OK; |
58 | } | 60 | } |
59 | 61 | ||
60 | Q_EXPORT_INTERFACE() | 62 | Q_EXPORT_INTERFACE() |
61 | { | 63 | { |
diff --git a/core/applets/vtapplet/vt.cpp b/core/applets/vtapplet/vt.cpp index 4cc2d60..cdd3c97 100644 --- a/core/applets/vtapplet/vt.cpp +++ b/core/applets/vtapplet/vt.cpp | |||
@@ -143,16 +143,18 @@ void VTApplet::activated() | |||
143 | 143 | ||
144 | QRESULT VTApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) | 144 | QRESULT VTApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) |
145 | { | 145 | { |
146 | *iface = 0; | 146 | *iface = 0; |
147 | if ( uuid == IID_QUnknown ) | 147 | if ( uuid == IID_QUnknown ) |
148 | *iface = this; | 148 | *iface = this; |
149 | else if ( uuid == IID_MenuApplet ) | 149 | else if ( uuid == IID_MenuApplet ) |
150 | *iface = this; | 150 | *iface = this; |
151 | else | ||
152 | return QS_FALSE; | ||
151 | 153 | ||
152 | if ( *iface ) | 154 | if ( *iface ) |
153 | (*iface)-> addRef ( ); | 155 | (*iface)-> addRef ( ); |
154 | return QS_OK; | 156 | return QS_OK; |
155 | } | 157 | } |
156 | 158 | ||
157 | Q_EXPORT_INTERFACE( ) | 159 | Q_EXPORT_INTERFACE( ) |
158 | { | 160 | { |
diff --git a/core/obex/obeximpl.cpp b/core/obex/obeximpl.cpp index 5bfc779..5b53644 100644 --- a/core/obex/obeximpl.cpp +++ b/core/obex/obeximpl.cpp | |||
@@ -12,16 +12,18 @@ ObexImpl::~ObexImpl() { | |||
12 | delete m_handler; | 12 | delete m_handler; |
13 | } | 13 | } |
14 | QRESULT ObexImpl::queryInterface( const QUuid& uuid, QUnknownInterface **iface ) { | 14 | QRESULT ObexImpl::queryInterface( const QUuid& uuid, QUnknownInterface **iface ) { |
15 | *iface = 0; | 15 | *iface = 0; |
16 | if ( uuid == IID_QUnknown ) { | 16 | if ( uuid == IID_QUnknown ) { |
17 | *iface = this; | 17 | *iface = this; |
18 | }else if ( uuid == IID_ObexInterface ) | 18 | }else if ( uuid == IID_ObexInterface ) |
19 | *iface = this; | 19 | *iface = this; |
20 | else | ||
21 | return QS_FALSE; | ||
20 | 22 | ||
21 | if (*iface) | 23 | if (*iface) |
22 | (*iface)->addRef(); | 24 | (*iface)->addRef(); |
23 | 25 | ||
24 | return QS_OK; | 26 | return QS_OK; |
25 | } | 27 | } |
26 | 28 | ||
27 | 29 | ||