Diffstat (limited to 'core/pim/today/plugins/datebook/datebookpluginimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/plugins/datebook/datebookpluginimpl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
@@ -20,24 +20,26 @@ | |||
20 | DatebookPluginImpl::DatebookPluginImpl() { | 20 | DatebookPluginImpl::DatebookPluginImpl() { |
21 | datebookPlugin = new DatebookPlugin(); | 21 | datebookPlugin = new DatebookPlugin(); |
22 | } | 22 | } |
23 | 23 | ||
24 | DatebookPluginImpl::~DatebookPluginImpl() { | 24 | DatebookPluginImpl::~DatebookPluginImpl() { |
25 | delete datebookPlugin; | 25 | delete datebookPlugin; |
26 | } | 26 | } |
27 | 27 | ||
28 | TodayPluginObject* DatebookPluginImpl::guiPart() { | 28 | TodayPluginObject* DatebookPluginImpl::guiPart() { |
29 | return datebookPlugin; | 29 | return datebookPlugin; |
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 ); |
43 | } | 45 | } |