summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/datebook/datebookplugin.cpp3
-rw-r--r--core/pim/today/plugins/datebook/datebookplugin.h3
-rw-r--r--core/pim/today/plugins/todolist/todoplugin.cpp3
-rw-r--r--core/pim/today/plugins/todolist/todoplugin.h3
4 files changed, 6 insertions, 6 deletions
diff --git a/core/pim/today/plugins/datebook/datebookplugin.cpp b/core/pim/today/plugins/datebook/datebookplugin.cpp
index 2ac7d01..f095478 100644
--- a/core/pim/today/plugins/datebook/datebookplugin.cpp
+++ b/core/pim/today/plugins/datebook/datebookplugin.cpp
@@ -23,11 +23,10 @@
23 23
24 24
25DatebookPlugin::DatebookPlugin() { 25DatebookPlugin::DatebookPlugin() {
26 m_widget = 0;
27} 26}
28 27
29DatebookPlugin::~DatebookPlugin() { 28DatebookPlugin::~DatebookPlugin() {
30 delete m_widget; 29 delete (DatebookPluginWidget*)m_widget;
31} 30}
32 31
33QString DatebookPlugin::pluginName() const { 32QString DatebookPlugin::pluginName() const {
diff --git a/core/pim/today/plugins/datebook/datebookplugin.h b/core/pim/today/plugins/datebook/datebookplugin.h
index 644a614..eb7a401 100644
--- a/core/pim/today/plugins/datebook/datebookplugin.h
+++ b/core/pim/today/plugins/datebook/datebookplugin.h
@@ -18,6 +18,7 @@
18#define DATEBOOK_PLUGIN_H 18#define DATEBOOK_PLUGIN_H
19 19
20#include <qstring.h> 20#include <qstring.h>
21#include <qguardedptr.h>
21#include <qwidget.h> 22#include <qwidget.h>
22 23
23#include <opie/oclickablelabel.h> 24#include <opie/oclickablelabel.h>
@@ -42,7 +43,7 @@ public:
42 void refresh(); 43 void refresh();
43 44
44 private: 45 private:
45 DatebookPluginWidget *m_widget; 46 QGuardedPtr<DatebookPluginWidget> m_widget;
46}; 47};
47 48
48 49
diff --git a/core/pim/today/plugins/todolist/todoplugin.cpp b/core/pim/today/plugins/todolist/todoplugin.cpp
index 1238f92..bff0eba 100644
--- a/core/pim/today/plugins/todolist/todoplugin.cpp
+++ b/core/pim/today/plugins/todolist/todoplugin.cpp
@@ -21,11 +21,10 @@
21 21
22 22
23TodolistPlugin::TodolistPlugin() { 23TodolistPlugin::TodolistPlugin() {
24 m_widget = 0l;
25} 24}
26 25
27TodolistPlugin::~TodolistPlugin() { 26TodolistPlugin::~TodolistPlugin() {
28 delete m_widget; 27 delete (TodolistPluginWidget*)m_widget;
29} 28}
30 29
31QString TodolistPlugin::pluginName() const { 30QString TodolistPlugin::pluginName() const {
diff --git a/core/pim/today/plugins/todolist/todoplugin.h b/core/pim/today/plugins/todolist/todoplugin.h
index 6106d0c..7a2235c 100644
--- a/core/pim/today/plugins/todolist/todoplugin.h
+++ b/core/pim/today/plugins/todolist/todoplugin.h
@@ -18,6 +18,7 @@
18#define TODOLIST_PLUGIN_H 18#define TODOLIST_PLUGIN_H
19 19
20#include <qstring.h> 20#include <qstring.h>
21#include <qguardedptr.h>
21#include <qwidget.h> 22#include <qwidget.h>
22 23
23#include <opie/tododb.h> 24#include <opie/tododb.h>
@@ -43,7 +44,7 @@ public:
43 void refresh(); 44 void refresh();
44 45
45 private: 46 private:
46 TodolistPluginWidget *m_widget; 47 QGuardedPtr<TodolistPluginWidget> m_widget;
47}; 48};
48 49
49#endif 50#endif