summaryrefslogtreecommitdiff
path: root/noncore/todayplugins/stockticker
Unidiff
Diffstat (limited to 'noncore/todayplugins/stockticker') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp4
1 files changed, 3 insertions, 1 deletions
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
@@ -27,20 +27,22 @@ StockTickerPluginImpl::~StockTickerPluginImpl() {
27 delete stocktickerPlugin; 27 delete stocktickerPlugin;
28} 28}
29 29
30 30
31TodayPluginObject* StockTickerPluginImpl::guiPart() { 31TodayPluginObject* StockTickerPluginImpl::guiPart() {
32 return stocktickerPlugin; 32 return stocktickerPlugin;
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 );
46} 48}