Commit 87418574 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing override

parent 7a8d81a7
Pipeline #55645 canceled with stage
......@@ -27,7 +27,7 @@ class FeedStorage;
class Storage : public QObject // krazy:exclude=qobject
{
public:
virtual ~Storage()
~Storage() override
{
}
......
......@@ -23,7 +23,7 @@ class AddFeedWidget : public QWidget, public Ui::AddFeedWidgetBase
Q_OBJECT
public:
explicit AddFeedWidget(QWidget *parent = nullptr);
~AddFeedWidget();
~AddFeedWidget() override;
};
class AddFeedDialog : public QDialog
......
......@@ -17,7 +17,7 @@ class AKREGATOR_EXPORT ArticleHtmlWebEngineWriter : public QObject
Q_OBJECT
public:
explicit ArticleHtmlWebEngineWriter(ArticleViewerWebEngine *view, QObject *parent = nullptr);
~ArticleHtmlWebEngineWriter();
~ArticleHtmlWebEngineWriter() override;
void begin();
void end();
......
......@@ -31,7 +31,7 @@ class AKREGATOR_EXPORT ArticleViewerWebEngineWidgetNg : public QWidget
public:
explicit ArticleViewerWebEngineWidgetNg(ArticleViewerWebEngine *customViewer, KActionCollection *ac, QWidget *parent);
explicit ArticleViewerWebEngineWidgetNg(KActionCollection *ac, QWidget *parent = nullptr);
~ArticleViewerWebEngineWidgetNg();
~ArticleViewerWebEngineWidgetNg() override;
ArticleViewerWebEngine *articleViewerNg() const;
......
......@@ -16,7 +16,7 @@ public:
enum CrashAction { RestoreSession = 0, NotRestoreSession, AskMeLater };
explicit CrashWidget(QWidget *parent = nullptr);
~CrashWidget();
~CrashWidget() override;
Q_SIGNALS:
void restoreSession(Akregator::CrashWidget::CrashAction type);
......
......@@ -65,7 +65,7 @@ public:
explicit FeedList(Akregator::Backend::Storage *storage);
/** Destructor. Contained nodes are deleted! */
~FeedList();
~FeedList() override;
const Folder *allFeedsFolder() const;
Folder *allFeedsFolder();
......
......@@ -22,7 +22,7 @@ class FeedPropertiesWidget : public QWidget, public Ui::FeedPropertiesWidgetBase
Q_OBJECT
public:
explicit FeedPropertiesWidget(QWidget *parent = nullptr, const QString &name = QString());
~FeedPropertiesWidget();
~FeedPropertiesWidget() override;
enum IntervalStep { Minutes = 0, Hours, Days, Never };
......
......@@ -28,7 +28,7 @@ class ArticleGrantleeObject : public QObject
public:
explicit ArticleGrantleeObject(const Article &article, ArticleFormatter::IconOption icon, QObject *parent = nullptr);
~ArticleGrantleeObject();
~ArticleGrantleeObject() override;
enum ArticleStatus { Unread = 0, Read, New };
Q_ENUMS(ArticleStatus)
......
......@@ -29,7 +29,7 @@ class AKREGATOR_EXPORT FrameManager : public QObject
public:
explicit FrameManager(QObject *parent = nullptr);
~FrameManager();
~FrameManager() override;
Frame *currentFrame() const;
......
......@@ -23,7 +23,7 @@ class AKREGATOR_EXPORT DownloadArticleJob : public QObject
Q_OBJECT
public:
explicit DownloadArticleJob(QObject *parent = nullptr);
~DownloadArticleJob();
~DownloadArticleJob() override;
void start();
......
......@@ -17,7 +17,7 @@ class AKREGATOR_EXPORT DownloadFeedIconJob : public QObject
Q_OBJECT
public:
explicit DownloadFeedIconJob(QObject *parent = nullptr);
~DownloadFeedIconJob();
~DownloadFeedIconJob() override;
Q_REQUIRED_RESULT bool start();
Q_REQUIRED_RESULT bool canStart() const;
......
......@@ -61,7 +61,7 @@ public:
/** destructor. Note that cleanups should be done in
slotOnShutdown(), so we don't risk accessing self-deleting objects after deletion. */
~MainWidget();
~MainWidget() override;
/** saves settings. Make sure that the Settings singleton is not destroyed yet when saveSettings is called */
void saveSettings();
......
......@@ -24,7 +24,7 @@ public:
/** singleton instance of notification manager */
static NotificationManager *self();
~NotificationManager();
~NotificationManager() override;
/** the widget used for notification, normally either the mainwindow or the tray icon */
void setWidget(QWidget *widget, const QString &componentName = QString());
......
......@@ -33,7 +33,7 @@ public:
static ProgressManager *self();
ProgressManager();
~ProgressManager();
~ProgressManager() override;
/** sets the feed list to be managed */
void setFeedList(const QSharedPointer<FeedList> &feedList);
......
......@@ -24,7 +24,7 @@ public:
void setEnabled(bool enabled);
explicit TrayIcon(QObject *parent = nullptr);
~TrayIcon();
~TrayIcon() override;
public Q_SLOTS:
void settingsChanged();
......
......@@ -15,7 +15,7 @@ class AKREGATOR_EXPORT UnityServiceManager : public QObject
Q_OBJECT
public:
explicit UnityServiceManager(QObject *parent = nullptr);
~UnityServiceManager();
~UnityServiceManager() override;
static UnityServiceManager *instance();
......
......@@ -18,7 +18,7 @@ class AKREGATOR_EXPORT URLHandlerWebEngineManager : public QObject
{
Q_OBJECT
public:
~URLHandlerWebEngineManager();
~URLHandlerWebEngineManager() override;
static URLHandlerWebEngineManager *instance();
void registerHandler(const URLHandlerWebEngine *handler);
......
......@@ -16,7 +16,7 @@ class AkregatorCentralWidget : public QStackedWidget
Q_OBJECT
public:
explicit AkregatorCentralWidget(QWidget *parent = nullptr);
~AkregatorCentralWidget();
~AkregatorCentralWidget() override;
void needToRestoreCrashedSession();
......
......@@ -28,7 +28,7 @@ class SearchBar : public QWidget
public:
explicit SearchBar(QWidget *parent = nullptr);
~SearchBar();
~SearchBar() override;
Q_REQUIRED_RESULT QString text() const;
Q_REQUIRED_RESULT StatusSearchLine::Status status() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment