modernize: Use std::make_unique
[quassel.git] / src / qtui / dockmanagernotificationbackend.h
index 37ebd47..a32e4c6 100644 (file)
@@ -36,9 +36,9 @@ class DockManagerNotificationBackend : public AbstractNotificationBackend
 public:
     DockManagerNotificationBackend(QObject *parent = nullptr);
 
-    void notify(const Notification &);
-    void close(uint notificationId);
-    virtual SettingsPage *createConfigWidget() const;
+    void notify(const Notification &) override;
+    void close(uint notificationId) override;
+    SettingsPage *createConfigWidget() const override;
 
 private slots:
     void enabledChanged(const QVariant &);
@@ -52,9 +52,9 @@ private:
     bool _enabled;
     bool _available;
     QDBusConnection _bus;
-    QDBusInterface *_dock;
-    QDBusInterface *_item;
-    int _count;
+    QDBusInterface *_dock{nullptr};
+    QDBusInterface *_item{nullptr};
+    int _count{0};
 };
 
 
@@ -65,10 +65,10 @@ class DockManagerNotificationBackend::ConfigWidget : public SettingsPage
 public:
     ConfigWidget(bool enabled, QWidget *parent = nullptr);
 
-    void save();
-    void load();
-    bool hasDefaults() const;
-    void defaults();
+    void save() override;
+    void load() override;
+    bool hasDefaults() const override;
+    void defaults() override;
 
 private slots:
     void widgetChanged();