Commit 9e865ffd authored by Christoph Cullmann's avatar Christoph Cullmann 🍨
Browse files

avoid clash with C++ keywords: compl

parent 0a48c27e
Pipeline #242375 passed with stage
in 12 minutes and 40 seconds
......@@ -323,9 +323,9 @@ public:
// maybe use WaitForReset ??
// but more complex and already looks good anyway
auto handler = [this](const QList<LSPCompletionItem> & compl ) {
auto handler = [this](const QList<LSPCompletionItem> &completion) {
beginResetModel();
qCInfo(LSPCLIENT) << "adding completions " << compl .size();
qCInfo(LSPCLIENT) << "adding completions " << completion.size();
// purge all existing completion items
m_matches.erase(std::remove_if(m_matches.begin(),
m_matches.end(),
......@@ -333,7 +333,7 @@ public:
return ci.argumentHintDepth == 0;
}),
m_matches.end());
for (const auto &item : compl ) {
for (const auto &item : completion) {
m_matches.push_back(item);
}
std::stable_sort(m_matches.begin(), m_matches.end(), compare_match);
......
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