aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/AutoComplete.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/AutoComplete.cxx')
-rw-r--r--src/AutoComplete.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx
index 1447939b7..fec0f20e9 100644
--- a/src/AutoComplete.cxx
+++ b/src/AutoComplete.cxx
@@ -134,7 +134,7 @@ struct Sorter {
indices.push_back(i); // index of last position
}
- bool operator()(int a, int b) {
+ bool operator()(int a, int b) noexcept {
const int lenA = indices[a * 2 + 1] - indices[a * 2];
const int lenB = indices[b * 2 + 1] - indices[b * 2];
const int len = std::min(lenA, lenB);