moc: change QMap::unite to QMap::insert

Which is the intended behavior.

Change-Id: I0cffc623fc09284f3d95850f840564dca20ed0d4
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
Mårten Nordheim 2019-11-07 17:16:21 +01:00
parent 1c98479aa2
commit b79d74e96f

View File

@ -930,9 +930,9 @@ void Moc::parse()
if (it != classList.end()) {
it->classInfoList += def.classInfoList;
it->enumDeclarations.unite(def.enumDeclarations);
it->enumDeclarations.insert(def.enumDeclarations);
it->enumList += def.enumList;
it->flagAliases.unite(def.flagAliases);
it->flagAliases.insert(def.flagAliases);
} else {
knownGadgets.insert(def.classname, def.qualified);
knownGadgets.insert(def.qualified, def.qualified);