From fbe767bcc9f46f1d9bf680dc91eba983bc39fdeb Mon Sep 17 00:00:00 2001 From: zecke Date: Tue, 27 Jan 2004 18:48:09 +0000 Subject: Funny what my SDK all triggers Ok the reason to use a bool as return type is that you can say that something worked or not worked. So if we don't implement the given interface don't lie!! --- (limited to 'core/applets/irdaapplet') 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 @@ -50,7 +50,9 @@ QRESULT IrdaAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **i *iface = this; else if ( uuid == IID_TaskbarApplet ) *iface = this; - + else + return QS_FALSE; + if ( *iface ) (*iface)->addRef(); return QS_OK; -- cgit v0.9.0.2