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; }