author | zecke <zecke> | 2004-01-27 19:00:49 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-01-27 19:00:49 (UTC) |
commit | 6e34e6e90f3ea6a18101395afc7cf5fe86c427e8 (patch) (unidiff) | |
tree | 6577258b34f19c75c96d03667405ff6d7940c55c | |
parent | ec32e99fae963a97b527c2c54813a96c284d99cf (diff) | |
download | opie-6e34e6e90f3ea6a18101395afc7cf5fe86c427e8.zip opie-6e34e6e90f3ea6a18101395afc7cf5fe86c427e8.tar.gz opie-6e34e6e90f3ea6a18101395afc7cf5fe86c427e8.tar.bz2 |
return QS_FALSE if interface is not implemented
-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 | 2 |
3 files changed, 6 insertions, 1 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 | |||
@@ -28,7 +28,8 @@ QRESULT AutoRotateImpl::queryInterface( const QUuid &uuid, QUnknownInterface **i | |||
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(); |
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 | |||
@@ -38,6 +38,8 @@ QRESULT NotesAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface ** | |||
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(); |
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 | |||
@@ -50,6 +50,8 @@ QRESULT WirelessAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface | |||
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(); |