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:
Michael Pyne 2016-05-04 21:12:33 -04:00
parent c306d60d8f
commit 3e6bc3621b

View file

@ -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()) {