summaryrefslogtreecommitdiff
path: root/core/obex/obeximpl.cpp
Side-by-side diff
Diffstat (limited to 'core/obex/obeximpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/obex/obeximpl.cpp2
1 files changed, 2 insertions, 0 deletions
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
@@ -8,23 +8,25 @@ using namespace OpieObex;
ObexImpl::ObexImpl() {
m_handler = new ObexHandler;
}
ObexImpl::~ObexImpl() {
delete m_handler;
}
QRESULT ObexImpl::queryInterface( const QUuid& uuid, QUnknownInterface **iface ) {
*iface = 0;
if ( uuid == IID_QUnknown ) {
*iface = this;
}else if ( uuid == IID_ObexInterface )
*iface = this;
+ else
+ return QS_FALSE;
if (*iface)
(*iface)->addRef();
return QS_OK;
}
Q_EXPORT_INTERFACE() {
Q_CREATE_INSTANCE( ObexImpl )
}