From 33875aa70a06c56a10c99c9517240a2e361b8e9e Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 5 Jul 2023 03:21:45 +0800 Subject: [PATCH] Mark singleton class as final --- src/base/iconprovider.h | 2 +- src/base/logger.h | 2 +- src/base/net/downloadmanager.h | 2 +- src/base/net/geoipmanager.h | 2 +- src/base/preferences.h | 2 +- src/base/rss/rss_session.h | 2 +- src/base/search/searchpluginmanager.h | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/base/iconprovider.h b/src/base/iconprovider.h index 35ba113ed..ea272c51d 100644 --- a/src/base/iconprovider.h +++ b/src/base/iconprovider.h @@ -35,7 +35,7 @@ class QString; -class IconProvider : public QObject +class IconProvider final : public QObject { Q_DISABLE_COPY_MOVE(IconProvider) diff --git a/src/base/logger.h b/src/base/logger.h index 39aa8afb1..e41139f77 100644 --- a/src/base/logger.h +++ b/src/base/logger.h @@ -69,7 +69,7 @@ namespace Log Q_DECLARE_OPERATORS_FOR_FLAGS(Log::MsgTypes) -class Logger : public QObject +class Logger final : public QObject { Q_OBJECT Q_DISABLE_COPY_MOVE(Logger) diff --git a/src/base/net/downloadmanager.h b/src/base/net/downloadmanager.h index aeb2b4887..faf636ba6 100644 --- a/src/base/net/downloadmanager.h +++ b/src/base/net/downloadmanager.h @@ -126,7 +126,7 @@ namespace Net class DownloadHandlerImpl; - class DownloadManager : public QObject + class DownloadManager final : public QObject { Q_OBJECT Q_DISABLE_COPY_MOVE(DownloadManager) diff --git a/src/base/net/geoipmanager.h b/src/base/net/geoipmanager.h index a5652d5f5..437459fdc 100644 --- a/src/base/net/geoipmanager.h +++ b/src/base/net/geoipmanager.h @@ -40,7 +40,7 @@ namespace Net { struct DownloadResult; - class GeoIPManager : public QObject + class GeoIPManager final : public QObject { Q_OBJECT Q_DISABLE_COPY_MOVE(GeoIPManager) diff --git a/src/base/preferences.h b/src/base/preferences.h index 60463399c..b3539b781 100644 --- a/src/base/preferences.h +++ b/src/base/preferences.h @@ -86,7 +86,7 @@ namespace TrayIcon Q_ENUM_NS(Style) } -class Preferences : public QObject +class Preferences final : public QObject { Q_OBJECT Q_DISABLE_COPY_MOVE(Preferences) diff --git a/src/base/rss/rss_session.h b/src/base/rss/rss_session.h index 550ff9a99..79c920066 100644 --- a/src/base/rss/rss_session.h +++ b/src/base/rss/rss_session.h @@ -88,7 +88,7 @@ namespace RSS class Folder; class Item; - class Session : public QObject + class Session final : public QObject { Q_OBJECT Q_DISABLE_COPY_MOVE(Session) diff --git a/src/base/search/searchpluginmanager.h b/src/base/search/searchpluginmanager.h index 35ec0cf18..86038ad66 100644 --- a/src/base/search/searchpluginmanager.h +++ b/src/base/search/searchpluginmanager.h @@ -58,7 +58,7 @@ struct PluginInfo class SearchDownloadHandler; class SearchHandler; -class SearchPluginManager : public QObject +class SearchPluginManager final : public QObject { Q_OBJECT Q_DISABLE_COPY_MOVE(SearchPluginManager)