Commit 7b8f5d98 authored by Marco Bubke's avatar Marco Bubke
Browse files

Clang: Improve conversion of QHash to QList



Change-Id: I5bea89d9a432240a131311b5fed537a46b3be967
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent bf6ce59f
......@@ -72,8 +72,6 @@ QList<AssistProposalItem *> toAssistProposalItems(const CodeCompletions &complet
{
static CPlusPlus::Icons m_icons; // de-deduplicate
QList<AssistProposalItem *> result;
bool signalCompletion = false; // TODO
bool slotCompletion = false; // TODO
......@@ -179,10 +177,11 @@ QList<AssistProposalItem *> toAssistProposalItems(const CodeCompletions &complet
}
}
foreach (ClangAssistProposalItem *item, items.values())
result.append(item);
QList<AssistProposalItem *> results;
results.reserve(items.size());
std::copy(items.cbegin(), items.cend(), std::back_inserter(results));
return result;
return results;
}
bool isFunctionHintLikeCompletion(CodeCompletion::Kind kind)
......
Markdown is supported
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