forked from qt-creator/qt-creator
LanguageClient: Fix function hint range check
Change-Id: I82d25ef6f2c12ea3af70ba973e940bcea08a79b8 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -57,7 +57,7 @@ private:
|
||||
|
||||
QString FunctionHintProposalModel::text(int index) const
|
||||
{
|
||||
if (index < 0 || m_sigis.signatures().size() >= index)
|
||||
if (index < 0 || m_sigis.signatures().size() <= index)
|
||||
return {};
|
||||
return m_sigis.signatures().at(index).label();
|
||||
}
|
||||
|
Reference in New Issue
Block a user