Initialize Interface factory pointer to fix Coverity warning.
Coverity complains (in CID 1335150) about `Generator::parseInterface()` since the default copy-ctor for `Interface` will end up copying uninitialized memory (the unset `m_factory` member). Fixed by initializing the m_factory. REVIEW:127836
This commit is contained in:
parent
c306d60d8f
commit
3e6bc3621b
1 changed files with 1 additions and 0 deletions
|
@ -208,6 +208,7 @@ Interface::Interface() = default;
|
|||
Interface::Interface(const QXmlStreamAttributes &attributes)
|
||||
: m_name(attributes.value(QStringLiteral("name")).toString())
|
||||
, m_version(attributes.value(QStringLiteral("version")).toUInt())
|
||||
, m_factory(Q_NULLPTR)
|
||||
{
|
||||
auto it = s_clientClassNameMapping.constFind(m_name);
|
||||
if (it != s_clientClassNameMapping.constEnd()) {
|
||||
|
|
Loading…
Reference in a new issue