Diffstat (limited to 'noncore/todayplugins/weather') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/todayplugins/weather/weatherpluginimpl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/todayplugins/weather/weatherpluginimpl.cpp b/noncore/todayplugins/weather/weatherpluginimpl.cpp index 1a7c27b..fd32a44 100644 --- a/noncore/todayplugins/weather/weatherpluginimpl.cpp +++ b/noncore/todayplugins/weather/weatherpluginimpl.cpp | |||
@@ -30,33 +30,34 @@ | |||
30 | #include "weatherpluginimpl.h" | 30 | #include "weatherpluginimpl.h" |
31 | 31 | ||
32 | WeatherPluginImpl::WeatherPluginImpl() | 32 | WeatherPluginImpl::WeatherPluginImpl() |
33 | { | 33 | { |
34 | weatherPlugin = new WeatherPlugin(); | 34 | weatherPlugin = new WeatherPlugin(); |
35 | } | 35 | } |
36 | 36 | ||
37 | WeatherPluginImpl::~WeatherPluginImpl() | 37 | WeatherPluginImpl::~WeatherPluginImpl() |
38 | { | 38 | { |
39 | delete weatherPlugin; | 39 | delete weatherPlugin; |
40 | } | 40 | } |
41 | 41 | ||
42 | 42 | ||
43 | TodayPluginObject* WeatherPluginImpl::guiPart() | 43 | TodayPluginObject* WeatherPluginImpl::guiPart() |
44 | { | 44 | { |
45 | return weatherPlugin; | 45 | return weatherPlugin; |
46 | } | 46 | } |
47 | 47 | ||
48 | QRESULT WeatherPluginImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 48 | QRESULT WeatherPluginImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
49 | { | 49 | { |
50 | *iface = 0; | 50 | *iface = 0; |
51 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) | 51 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) |
52 | { | 52 | { |
53 | *iface = this, (*iface)->addRef(); | 53 | *iface = this, (*iface)->addRef(); |
54 | } | 54 | }else |
55 | return QS_FALSE; | ||
55 | 56 | ||
56 | return QS_OK; | 57 | return QS_OK; |
57 | } | 58 | } |
58 | 59 | ||
59 | Q_EXPORT_INTERFACE() | 60 | Q_EXPORT_INTERFACE() |
60 | { | 61 | { |
61 | Q_CREATE_INSTANCE( WeatherPluginImpl ); | 62 | Q_CREATE_INSTANCE( WeatherPluginImpl ); |
62 | } | 63 | } |