CodeAssist: Remove needless indirection in item access

Change-Id: Ibcb6c4898b34ecab52de28485befdf589bb880d7
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
hjk
2014-09-13 02:05:06 +02:00
parent 866a99b655
commit 282864bdb9
3 changed files with 1 additions and 10 deletions

View File

@@ -1033,7 +1033,7 @@ void QmlJSAssistProposalModel::filter(const QString &prefix)
void QmlJSAssistProposalModel::sort(const QString &prefix)
{
std::sort(currentItems().first, currentItems().second, QmlJSLessThan(prefix));
std::sort(m_currentItems.begin(), m_currentItems.end(), QmlJSLessThan(prefix));
}
bool QmlJSAssistProposalModel::keepPerfectMatch(AssistReason reason) const