From c9b2423aaed459c68dd8f43b1de0edee4eb287c8 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 28 May 2021 14:46:21 +1000 Subject: Better exception handling for noexcept methods. More accurate noexcept marking. --- src/AutoComplete.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/AutoComplete.cxx') 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); -- cgit v1.2.3