HelpItem: Remove senseless constructor

If we are already passing a URL, we do not need to pass a map of URLs in
addition. We already know exactly which URL we want.

Change-Id: I955e03a611667733e9734e7996725d51857c71b1
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Eike Ziller
2019-01-31 12:14:52 +01:00
parent 85696d7018
commit d07e5b2a46
3 changed files with 1 additions and 14 deletions

View File

@@ -185,8 +185,7 @@ bool QmlJSHoverHandler::setQmlTypeHelp(const ScopeChain &scopeChain, const Docum
// Use the URL, to disambiguate different versions
const HelpItem helpItem(filteredUrlMap.first(),
qName.join(QLatin1Char('.')),
HelpItem::QmlComponent,
filteredUrlMap);
HelpItem::QmlComponent);
setLastHelpItemIdentified(helpItem);
return true;
}