From e15cb97f0fb387e71d4594fd4ae9d0701d59430d Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Sun, 6 Jun 2021 19:54:36 +0300 Subject: [PATCH] UI: IocContainer: Don't inherit from QObject. --- src/ui/util/ioc/ioccontainer.cpp | 2 +- src/ui/util/ioc/ioccontainer.h | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ui/util/ioc/ioccontainer.cpp b/src/ui/util/ioc/ioccontainer.cpp index 9dceb817..6c6efeac 100644 --- a/src/ui/util/ioc/ioccontainer.cpp +++ b/src/ui/util/ioc/ioccontainer.cpp @@ -6,7 +6,7 @@ int IocContainer::g_tlsIndex = -1; -IocContainer::IocContainer(QObject *parent) : QObject(parent) { } +IocContainer::IocContainer() = default; IocContainer::~IocContainer() { diff --git a/src/ui/util/ioc/ioccontainer.h b/src/ui/util/ioc/ioccontainer.h index 6d87275f..2aabfd40 100644 --- a/src/ui/util/ioc/ioccontainer.h +++ b/src/ui/util/ioc/ioccontainer.h @@ -12,15 +12,13 @@ using IocObject = void; constexpr int IOC_MAX_SIZE = 32; -class IocContainer : public QObject +class IocContainer { - Q_OBJECT - public: enum IocFlag : quint8 { AutoDelete = 0x01, IsService = 0x02, WasSetUp = 0x04 }; - explicit IocContainer(QObject *parent = nullptr); - ~IocContainer() override; + explicit IocContainer(); + ~IocContainer(); const int size() const { return m_size; }