summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/notificationwidget.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-01-28 21:50:25 +0100
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2018-01-31 14:47:26 +0100
commit1704e0801258d0ae78b18be32488e083458010f1 (patch)
tree74644609b9b8431330b5c9f1c4177cd4071a9348 /desktop-widgets/notificationwidget.h
parent5a9faf2fead68df70c9e660c1ebb9b6fad90ba33 (diff)
downloadsubsurface-1704e0801258d0ae78b18be32488e083458010f1.tar.gz
Make future_watcher a subobject of NotificationWidget
This was a raw pointer. No point in doing error-prone manual memory management. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/notificationwidget.h')
-rw-r--r--desktop-widgets/notificationwidget.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop-widgets/notificationwidget.h b/desktop-widgets/notificationwidget.h
index 90b3e3c43..70d94b8d6 100644
--- a/desktop-widgets/notificationwidget.h
+++ b/desktop-widgets/notificationwidget.h
@@ -20,10 +20,9 @@ public:
void showNotification(QString message, KMessageWidget::MessageType type);
void hideNotification();
QString getNotificationText();
- ~NotificationWidget();
private:
- QFutureWatcher<void> *future_watcher;
+ QFutureWatcher<void> future_watcher;
private
slots: