From 7d5a209dd0ba553f95c2f2e0f78ae96165d28ff7 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 22 Sep 2020 22:14:41 +0200 Subject: [PATCH] [modules] Warnings-- in tests (~Test() override) --- src/modules/hostinfo/Tests.cpp | 2 +- src/modules/keyboard/Tests.cpp | 2 +- src/modules/machineid/Tests.cpp | 2 +- src/modules/netinstall/Tests.cpp | 2 +- src/modules/users/TestCreateUserJob.cpp | 2 +- src/modules/users/TestSetHostNameJob.cpp | 2 +- src/modules/users/Tests.cpp | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/modules/hostinfo/Tests.cpp b/src/modules/hostinfo/Tests.cpp index 724340269..f3863d98b 100644 --- a/src/modules/hostinfo/Tests.cpp +++ b/src/modules/hostinfo/Tests.cpp @@ -22,7 +22,7 @@ class HostInfoTests : public QObject Q_OBJECT public: HostInfoTests() {} - virtual ~HostInfoTests() {} + ~HostInfoTests() override {} private Q_SLOTS: void initTestCase(); diff --git a/src/modules/keyboard/Tests.cpp b/src/modules/keyboard/Tests.cpp index 16983685a..4c6d0cebb 100644 --- a/src/modules/keyboard/Tests.cpp +++ b/src/modules/keyboard/Tests.cpp @@ -18,7 +18,7 @@ class KeyboardLayoutTests : public QObject Q_OBJECT public: KeyboardLayoutTests() {} - virtual ~KeyboardLayoutTests() {} + ~KeyboardLayoutTests() override {} private Q_SLOTS: void initTestCase(); diff --git a/src/modules/machineid/Tests.cpp b/src/modules/machineid/Tests.cpp index 13cce3de7..0ad3e9e8b 100644 --- a/src/modules/machineid/Tests.cpp +++ b/src/modules/machineid/Tests.cpp @@ -27,7 +27,7 @@ class MachineIdTests : public QObject Q_OBJECT public: MachineIdTests() {} - virtual ~MachineIdTests() {} + ~MachineIdTests() override {} private Q_SLOTS: void initTestCase(); diff --git a/src/modules/netinstall/Tests.cpp b/src/modules/netinstall/Tests.cpp index 569d47d15..0b59658c1 100644 --- a/src/modules/netinstall/Tests.cpp +++ b/src/modules/netinstall/Tests.cpp @@ -21,7 +21,7 @@ class ItemTests : public QObject Q_OBJECT public: ItemTests(); - virtual ~ItemTests() {} + ~ItemTests() override {} private: void checkAllSelected( PackageTreeItem* p ); diff --git a/src/modules/users/TestCreateUserJob.cpp b/src/modules/users/TestCreateUserJob.cpp index a801baf45..fc2d74dcd 100644 --- a/src/modules/users/TestCreateUserJob.cpp +++ b/src/modules/users/TestCreateUserJob.cpp @@ -22,7 +22,7 @@ class CreateUserTests : public QObject Q_OBJECT public: CreateUserTests(); - virtual ~CreateUserTests() {} + ~CreateUserTests() override {} private Q_SLOTS: void initTestCase(); diff --git a/src/modules/users/TestSetHostNameJob.cpp b/src/modules/users/TestSetHostNameJob.cpp index 17061037f..03bfaa6e7 100644 --- a/src/modules/users/TestSetHostNameJob.cpp +++ b/src/modules/users/TestSetHostNameJob.cpp @@ -28,7 +28,7 @@ class UsersTests : public QObject Q_OBJECT public: UsersTests(); - virtual ~UsersTests() {} + ~UsersTests() override {} private Q_SLOTS: void initTestCase(); diff --git a/src/modules/users/Tests.cpp b/src/modules/users/Tests.cpp index 78fa74780..9ed7718c7 100644 --- a/src/modules/users/Tests.cpp +++ b/src/modules/users/Tests.cpp @@ -28,7 +28,7 @@ class UserTests : public QObject Q_OBJECT public: UserTests(); - virtual ~UserTests() {} + ~UserTests() override {} private Q_SLOTS: void initTestCase();