Diffstat (limited to 'noncore/todayplugins/weather/weatherpluginimpl.cpp') (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 @@ #include "weatherpluginimpl.h" WeatherPluginImpl::WeatherPluginImpl() { weatherPlugin = new WeatherPlugin(); } WeatherPluginImpl::~WeatherPluginImpl() { delete weatherPlugin; } TodayPluginObject* WeatherPluginImpl::guiPart() { return weatherPlugin; } QRESULT WeatherPluginImpl::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( WeatherPluginImpl ); } |