summaryrefslogtreecommitdiff
path: root/noncore/todayplugins
Unidiff
Diffstat (limited to 'noncore/todayplugins') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/todayplugins/fortune/fortunepluginimpl.cpp4
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp4
-rw-r--r--noncore/todayplugins/weather/weatherpluginimpl.cpp3
3 files changed, 8 insertions, 3 deletions
diff --git a/noncore/todayplugins/fortune/fortunepluginimpl.cpp b/noncore/todayplugins/fortune/fortunepluginimpl.cpp
index 466e322..090aaa7 100644
--- a/noncore/todayplugins/fortune/fortunepluginimpl.cpp
+++ b/noncore/todayplugins/fortune/fortunepluginimpl.cpp
@@ -35,13 +35,15 @@ TodayPluginObject* FortunePluginImpl::guiPart()
35 35
36QRESULT FortunePluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) 36QRESULT FortunePluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface )
37{ 37{
38 *iface = 0; 38 *iface = 0;
39 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { 39 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) {
40 *iface = this, (*iface)->addRef(); 40 *iface = this, (*iface)->addRef();
41 } 41 }else
42 return QS_FALSE;
43
42 return QS_OK; 44 return QS_OK;
43 45
44} 46}
45 47
46Q_EXPORT_INTERFACE() 48Q_EXPORT_INTERFACE()
47{ 49{
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp
index c17781b..ec3e34d 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp
+++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp
@@ -33,13 +33,15 @@ TodayPluginObject* StockTickerPluginImpl::guiPart() {
33} 33}
34 34
35QRESULT StockTickerPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { 35QRESULT StockTickerPluginImpl::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
44Q_EXPORT_INTERFACE() { 46Q_EXPORT_INTERFACE() {
45 Q_CREATE_INSTANCE( StockTickerPluginImpl ); 47 Q_CREATE_INSTANCE( StockTickerPluginImpl );
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
@@ -48,13 +48,14 @@ TodayPluginObject* WeatherPluginImpl::guiPart()
48QRESULT WeatherPluginImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) 48QRESULT 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
59Q_EXPORT_INTERFACE() 60Q_EXPORT_INTERFACE()
60{ 61{