summaryrefslogtreecommitdiff
path: root/noncore
authorzecke <zecke>2004-01-27 19:00:49 (UTC)
committer zecke <zecke>2004-01-27 19:00:49 (UTC)
commit6e34e6e90f3ea6a18101395afc7cf5fe86c427e8 (patch) (side-by-side diff)
tree6577258b34f19c75c96d03667405ff6d7940c55c /noncore
parentec32e99fae963a97b527c2c54813a96c284d99cf (diff)
downloadopie-6e34e6e90f3ea6a18101395afc7cf5fe86c427e8.zip
opie-6e34e6e90f3ea6a18101395afc7cf5fe86c427e8.tar.gz
opie-6e34e6e90f3ea6a18101395afc7cf5fe86c427e8.tar.bz2
return QS_FALSE if interface is not implemented
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/autorotateapplet/autorotateimpl.cpp3
-rw-r--r--noncore/applets/notesapplet/notesappletimpl.cpp2
-rw-r--r--noncore/applets/wirelessapplet/wirelessappletimpl.cpp4
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
@@ -19,23 +19,24 @@ QWidget *AutoRotateImpl::applet( QWidget *parent ) {
}
int AutoRotateImpl::position() const {
return 7;
}
QRESULT AutoRotateImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) {
*iface = 0;
if ( uuid == IID_QUnknown ) {
*iface = this;
} else if ( uuid == IID_TaskbarApplet ) {
*iface = this;
- }
+ } else
+ return QS_FALSE;
if ( *iface ) {
(*iface)->addRef();
}
return QS_OK;
}
Q_EXPORT_INTERFACE() {
Q_CREATE_INSTANCE( AutoRotateImpl )
}
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
@@ -29,23 +29,25 @@ QWidget *NotesAppletImpl::applet( QWidget *parent ) {
}
int NotesAppletImpl::position() const {
return 6;
}
QRESULT NotesAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) {
*iface = 0;
if ( uuid == IID_QUnknown )
*iface = this;
else if ( uuid == IID_TaskbarApplet )
*iface = this;
+ else
+ return QS_FALSE;
if ( *iface )
(*iface)->addRef();
return QS_OK;
}
Q_EXPORT_INTERFACE() {
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
@@ -41,24 +41,26 @@ QWidget *WirelessAppletImpl::applet( QWidget *parent )
int WirelessAppletImpl::position() const
{
return 6;
}
QRESULT WirelessAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
{
*iface = 0;
if ( uuid == IID_QUnknown )
*iface = this;
else if ( uuid == IID_TaskbarApplet )
*iface = this;
-
+ else
+ return QS_FALSE;
+
if ( *iface )
(*iface)->addRef();
return QS_OK;
}
Q_EXPORT_INTERFACE()
{
Q_CREATE_INSTANCE( WirelessAppletImpl )
}