diff options
| author | David Schulz <[email protected]> | 2021-06-21 10:17:21 +0200 |
|---|---|---|
| committer | David Schulz <[email protected]> | 2021-06-21 08:36:38 +0000 |
| commit | 1b0d502fa6c383a76b0cceda1aa962cd0a5183d1 (patch) | |
| tree | 99efef6584c798dc460e47f95553b5a134616c34 /src/plugins/languageclient/languageclientfunctionhint.cpp | |
| parent | 0c24a0a78e16e5ae5590019ff0a2dffeeb2e8a5d (diff) | |
LanguageClient: Fix function hint range check
Change-Id: I82d25ef6f2c12ea3af70ba973e940bcea08a79b8
Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'src/plugins/languageclient/languageclientfunctionhint.cpp')
| -rw-r--r-- | src/plugins/languageclient/languageclientfunctionhint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/languageclient/languageclientfunctionhint.cpp b/src/plugins/languageclient/languageclientfunctionhint.cpp index 1cdb0fb1e2b..32c0ff0a637 100644 --- a/src/plugins/languageclient/languageclientfunctionhint.cpp +++ b/src/plugins/languageclient/languageclientfunctionhint.cpp @@ -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(); } |
