Commit 3e6bc362 authored by Michael Pyne's avatar Michael Pyne
Browse files

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
parent c306d60d
......@@ -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()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment