summaryrefslogtreecommitdiff
path: root/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp
authorsimon <simon>2002-11-21 12:08:00 (UTC)
committer simon <simon>2002-11-21 12:08:00 (UTC)
commit50058bc62134e4a23da48bb9f797a66fb25b1f91 (patch) (unidiff)
tree59ec820e2ce7ceba4a01c6b3cc95c1013cbd9b58 /noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp
parent58715bab157ca913a08b7ce26c230bbc0be5f70b (diff)
downloadopie-50058bc62134e4a23da48bb9f797a66fb25b1f91.zip
opie-50058bc62134e4a23da48bb9f797a66fb25b1f91.tar.gz
opie-50058bc62134e4a23da48bb9f797a66fb25b1f91.tar.bz2
- delete the guiPart object in the destructor
Diffstat (limited to 'noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp
index 9a640d4..c17781b 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp
+++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp
@@ -15,24 +15,25 @@
15 ***************************************************************************/ 15 ***************************************************************************/
16 16
17 17
18 18
19#include "stocktickerplugin.h" 19#include "stocktickerplugin.h"
20#include "stocktickerpluginimpl.h" 20#include "stocktickerpluginimpl.h"
21 21
22StockTickerPluginImpl::StockTickerPluginImpl() { 22StockTickerPluginImpl::StockTickerPluginImpl() {
23 stocktickerPlugin = new StockTickerPlugin(); 23 stocktickerPlugin = new StockTickerPlugin();
24} 24}
25 25
26StockTickerPluginImpl::~StockTickerPluginImpl() { 26StockTickerPluginImpl::~StockTickerPluginImpl() {
27 delete stocktickerPlugin;
27} 28}
28 29
29 30
30TodayPluginObject* StockTickerPluginImpl::guiPart() { 31TodayPluginObject* StockTickerPluginImpl::guiPart() {
31 return stocktickerPlugin; 32 return stocktickerPlugin;
32} 33}
33 34
34QRESULT StockTickerPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { 35QRESULT StockTickerPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) {
35 *iface = 0; 36 *iface = 0;
36 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { 37 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) {
37 *iface = this, (*iface)->addRef(); 38 *iface = this, (*iface)->addRef();
38 } 39 }