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 | |||
@@ -33,13 +33,15 @@ TodayPluginObject* AddressBookPluginImpl::guiPart() { | |||
33 | } | 33 | } |
34 | 34 | ||
35 | QRESULT AddressBookPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { | 35 | QRESULT AddressBookPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { |
36 | *iface = 0; | 36 | *iface = 0; |
37 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { | 37 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { |
38 | *iface = this, (*iface)->addRef(); | 38 | *iface = this, (*iface)->addRef(); |
39 | } | 39 | }else |
40 | return QS_FALSE; | ||
41 | |||
40 | return QS_OK; | 42 | return QS_OK; |
41 | 43 | ||
42 | } | 44 | } |
43 | 45 | ||
44 | Q_EXPORT_INTERFACE() { | 46 | Q_EXPORT_INTERFACE() { |
45 | Q_CREATE_INSTANCE( AddressBookPluginImpl ); | 47 | 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 | |||
@@ -30,13 +30,15 @@ TodayPluginObject* DatebookPluginImpl::guiPart() { | |||
30 | } | 30 | } |
31 | 31 | ||
32 | QRESULT DatebookPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { | 32 | QRESULT DatebookPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { |
33 | *iface = 0; | 33 | *iface = 0; |
34 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { | 34 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { |
35 | *iface = this, (*iface)->addRef(); | 35 | *iface = this, (*iface)->addRef(); |
36 | } | 36 | }else |
37 | return QS_FALSE; | ||
38 | |||
37 | return QS_OK; | 39 | return QS_OK; |
38 | 40 | ||
39 | } | 41 | } |
40 | 42 | ||
41 | Q_EXPORT_INTERFACE() { | 43 | Q_EXPORT_INTERFACE() { |
42 | Q_CREATE_INSTANCE( DatebookPluginImpl ); | 44 | 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 | |||
@@ -33,13 +33,15 @@ TodayPluginObject* MailPluginImpl::guiPart() { | |||
33 | } | 33 | } |
34 | 34 | ||
35 | QRESULT MailPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { | 35 | QRESULT MailPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { |
36 | *iface = 0; | 36 | *iface = 0; |
37 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { | 37 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { |
38 | *iface = this, (*iface)->addRef(); | 38 | *iface = this, (*iface)->addRef(); |
39 | } | 39 | }else |
40 | return QS_FALSE; | ||
41 | |||
40 | return QS_OK; | 42 | return QS_OK; |
41 | 43 | ||
42 | } | 44 | } |
43 | 45 | ||
44 | Q_EXPORT_INTERFACE() { | 46 | Q_EXPORT_INTERFACE() { |
45 | Q_CREATE_INSTANCE( MailPluginImpl ); | 47 | 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 | |||
@@ -31,13 +31,15 @@ TodayPluginObject* TodolistPluginImpl::guiPart() { | |||
31 | } | 31 | } |
32 | 32 | ||
33 | QRESULT TodolistPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { | 33 | QRESULT TodolistPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { |
34 | *iface = 0; | 34 | *iface = 0; |
35 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { | 35 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { |
36 | *iface = this, (*iface)->addRef(); | 36 | *iface = this, (*iface)->addRef(); |
37 | } | 37 | }else |
38 | return QS_FALSE; | ||
39 | |||
38 | return QS_OK; | 40 | return QS_OK; |
39 | 41 | ||
40 | } | 42 | } |
41 | 43 | ||
42 | Q_EXPORT_INTERFACE() { | 44 | Q_EXPORT_INTERFACE() { |
43 | Q_CREATE_INSTANCE( TodolistPluginImpl ); | 45 | Q_CREATE_INSTANCE( TodolistPluginImpl ); |