summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -25,3 +25,2 @@
DatebookPlugin::DatebookPlugin() {
- m_widget = 0;
}
@@ -29,3 +28,3 @@ DatebookPlugin::DatebookPlugin() {
DatebookPlugin::~DatebookPlugin() {
- delete m_widget;
+ delete (DatebookPluginWidget*)m_widget;
}
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
@@ -20,2 +20,3 @@
#include <qstring.h>
+#include <qguardedptr.h>
#include <qwidget.h>
@@ -44,3 +45,3 @@ public:
private:
- DatebookPluginWidget *m_widget;
+ QGuardedPtr<DatebookPluginWidget> m_widget;
};
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
@@ -23,3 +23,2 @@
TodolistPlugin::TodolistPlugin() {
- m_widget = 0l;
}
@@ -27,3 +26,3 @@ TodolistPlugin::TodolistPlugin() {
TodolistPlugin::~TodolistPlugin() {
- delete m_widget;
+ delete (TodolistPluginWidget*)m_widget;
}
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
@@ -20,2 +20,3 @@
#include <qstring.h>
+#include <qguardedptr.h>
#include <qwidget.h>
@@ -45,3 +46,3 @@ public:
private:
- TodolistPluginWidget *m_widget;
+ QGuardedPtr<TodolistPluginWidget> m_widget;
};