modernize: Use override instead of virtual
[quassel.git] / src / qtui / qtmultimedianotificationbackend.h
index 6117b31..417cc96 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2015 by the Quassel Project                        *
+ *   Copyright (C) 2005-2018 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -18,8 +18,7 @@
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
-#ifndef PHONONNOTIFICATIONBACKEND_H_
-#define PHONONNOTIFICATIONBACKEND_H_
+#pragma once
 
 #include <memory>
 
@@ -35,11 +34,11 @@ class QtMultimediaNotificationBackend : public AbstractNotificationBackend
     Q_OBJECT
 
 public:
-    QtMultimediaNotificationBackend(QObject *parent = 0);
+    QtMultimediaNotificationBackend(QObject *parent = nullptr);
 
     void notify(const Notification &) override;
     void close(uint notificationId) override;
-    virtual SettingsPage *createConfigWidget() const override;
+    SettingsPage *createConfigWidget() const override;
 
 private slots:
     void enabledChanged(const QVariant &);
@@ -59,7 +58,7 @@ class QtMultimediaNotificationBackend::ConfigWidget : public SettingsPage
     Q_OBJECT
 
 public:
-    ConfigWidget(QWidget *parent = 0);
+    ConfigWidget(QWidget *parent = nullptr);
 
     void save() override;
     void load() override;
@@ -79,6 +78,3 @@ private:
     QString _filename;
     std::unique_ptr<QMediaPlayer> _audioPreview;
 };
-
-
-#endif