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>
This commit is contained in:
Berthold Stoeger 2018-01-28 21:50:25 +01:00 committed by Jan Mulder
parent 5a9faf2fea
commit 1704e08012
2 changed files with 3 additions and 10 deletions

View file

@ -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: