Skip to content
Snippets Groups Projects
Commit 2fe75766 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

[m.i788a] Follow-up to #788 ()

Merging branch 'm.i788a'  into 'main'.

See merge request !2105
parents f439c287 63719229
No related branches found
No related tags found
1 merge request!2105Follow-up to #788
Pipeline #119042 passed
......@@ -162,10 +162,11 @@ public:
const uint typeIndex = XML::readUIntAttribute(r, XML::Attrib::type);
const auto type = static_cast<typename Catalog::Type>(typeIndex);
auto* p = Catalog::create(type, argsForCreation...);
if (m_initializer)
m_initializer(p, m_p.get());
if (p)
if (p) {
if (m_initializer)
m_initializer(p, m_p.get());
p->readFrom(r);
}
m_p.reset(p);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment