UI: IocContainer: Don't inherit from QObject.

This commit is contained in:
Nodir Temirkhodjaev 2021-06-06 19:54:36 +03:00
parent 7d1e1f6f4d
commit e15cb97f0f
2 changed files with 4 additions and 6 deletions

View File

@ -6,7 +6,7 @@
int IocContainer::g_tlsIndex = -1;
IocContainer::IocContainer(QObject *parent) : QObject(parent) { }
IocContainer::IocContainer() = default;
IocContainer::~IocContainer()
{

View File

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