mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-20 21:28:07 +00:00
feat(src/app/AsyncObjectBuilder): better code
This commit is contained in:
parent
4ba245d60d
commit
85ecac9c0a
2 changed files with 1 additions and 5 deletions
|
|
@ -54,8 +54,6 @@ protected:
|
|||
QQmlEngine::setObjectOwnership(object, QQmlEngine::CppOwnership);
|
||||
object->setParent(m_builder);
|
||||
|
||||
m_builder->m_is_created = true;
|
||||
|
||||
// Call user decorator.
|
||||
if (m_builder->m_decorator)
|
||||
m_builder->m_decorator(object);
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ public:
|
|||
QObject *getObject () const;
|
||||
|
||||
bool isCreated () const {
|
||||
return m_is_created;
|
||||
return !!m_object;
|
||||
}
|
||||
|
||||
signals:
|
||||
|
|
@ -61,8 +61,6 @@ private:
|
|||
|
||||
QObject *m_object = nullptr;
|
||||
|
||||
bool m_is_created = false;
|
||||
|
||||
#ifdef QT_DEBUG
|
||||
bool m_block_creation = false;
|
||||
#endif // ifdef QT_DEBUG
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue