From 56c52af124d9ce573869d8d9dba43192a9ae8412 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 22 Jul 2023 12:46:21 +0800 Subject: [PATCH] Mark `override` for virtual destructors PR #19348. --- src/gui/interfaces/iguiapplication.h | 2 +- src/gui/powermanagement/powermanagement_x11.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/interfaces/iguiapplication.h b/src/gui/interfaces/iguiapplication.h index 941a8bd18..a444aaae4 100644 --- a/src/gui/interfaces/iguiapplication.h +++ b/src/gui/interfaces/iguiapplication.h @@ -39,7 +39,7 @@ class MainWindow; class IGUIApplication : public IApplication { public: - virtual ~IGUIApplication() = default; + ~IGUIApplication() override = default; virtual DesktopIntegration *desktopIntegration() = 0; virtual MainWindow *mainWindow() = 0; diff --git a/src/gui/powermanagement/powermanagement_x11.h b/src/gui/powermanagement/powermanagement_x11.h index 4da9ece22..cc6fa529f 100644 --- a/src/gui/powermanagement/powermanagement_x11.h +++ b/src/gui/powermanagement/powermanagement_x11.h @@ -41,7 +41,7 @@ class PowerManagementInhibitor final : public QObject public: PowerManagementInhibitor(QObject *parent = nullptr); - virtual ~PowerManagementInhibitor() = default; + ~PowerManagementInhibitor() override = default; void requestIdle(); void requestBusy();