4 files changed, 12 insertions, 4 deletions
diff --git a/core/pim/today/plugins/addressbook/addresspluginimpl.cpp b/core/pim/today/plugins/addressbook/addresspluginimpl.cpp index 54e620e..15cd805 100644 --- a/core/pim/today/plugins/addressbook/addresspluginimpl.cpp +++ b/core/pim/today/plugins/addressbook/addresspluginimpl.cpp @@ -15,32 +15,34 @@ * (at your option) any later version. * * * ***************************************************************************/ #include "addressplugin.h" #include "addresspluginimpl.h" AddressBookPluginImpl::AddressBookPluginImpl() { addressbookPlugin = new AddressBookPlugin(); } AddressBookPluginImpl::~AddressBookPluginImpl() { delete addressbookPlugin; } TodayPluginObject* AddressBookPluginImpl::guiPart() { return addressbookPlugin; } QRESULT AddressBookPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { *iface = 0; if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { *iface = this, (*iface)->addRef(); - } + }else + return QS_FALSE; + return QS_OK; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( AddressBookPluginImpl ); } diff --git a/core/pim/today/plugins/datebook/datebookpluginimpl.cpp b/core/pim/today/plugins/datebook/datebookpluginimpl.cpp index 45736bb..6baffb9 100644 --- a/core/pim/today/plugins/datebook/datebookpluginimpl.cpp +++ b/core/pim/today/plugins/datebook/datebookpluginimpl.cpp @@ -12,32 +12,34 @@ * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "datebookplugin.h" #include "datebookpluginimpl.h" DatebookPluginImpl::DatebookPluginImpl() { datebookPlugin = new DatebookPlugin(); } DatebookPluginImpl::~DatebookPluginImpl() { delete datebookPlugin; } TodayPluginObject* DatebookPluginImpl::guiPart() { return datebookPlugin; } QRESULT DatebookPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { *iface = 0; if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { *iface = this, (*iface)->addRef(); - } + }else + return QS_FALSE; + return QS_OK; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( DatebookPluginImpl ); } diff --git a/core/pim/today/plugins/mail/mailpluginimpl.cpp b/core/pim/today/plugins/mail/mailpluginimpl.cpp index bd57bc9..dfd3a64 100644 --- a/core/pim/today/plugins/mail/mailpluginimpl.cpp +++ b/core/pim/today/plugins/mail/mailpluginimpl.cpp @@ -15,32 +15,34 @@ ***************************************************************************/ #include "mailplugin.h" #include "mailpluginimpl.h" MailPluginImpl::MailPluginImpl() { mailPlugin = new MailPlugin(); } MailPluginImpl::~MailPluginImpl() { delete mailPlugin; } TodayPluginObject* MailPluginImpl::guiPart() { return mailPlugin; } QRESULT MailPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { *iface = 0; if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { *iface = this, (*iface)->addRef(); - } + }else + return QS_FALSE; + return QS_OK; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( MailPluginImpl ); } diff --git a/core/pim/today/plugins/todolist/todopluginimpl.cpp b/core/pim/today/plugins/todolist/todopluginimpl.cpp index c64113c..639587f 100644 --- a/core/pim/today/plugins/todolist/todopluginimpl.cpp +++ b/core/pim/today/plugins/todolist/todopluginimpl.cpp @@ -13,32 +13,34 @@ * (at your option) any later version. * * * ***************************************************************************/ #include "todoplugin.h" #include "todopluginimpl.h" TodolistPluginImpl::TodolistPluginImpl() { todolistPlugin = new TodolistPlugin(); } TodolistPluginImpl::~TodolistPluginImpl() { delete todolistPlugin; } TodayPluginObject* TodolistPluginImpl::guiPart() { return todolistPlugin; } QRESULT TodolistPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { *iface = 0; if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { *iface = this, (*iface)->addRef(); - } + }else + return QS_FALSE; + return QS_OK; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( TodolistPluginImpl ); } |