summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/memoryindex
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-10-07 11:16:08 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-10-07 11:16:35 +0000
commit9bb9d8e14827ecc4dba2d43e2d9e76248c120e1d (patch)
tree9e64c1471c0391410c824f75e2dc1fbfa8585229 /searchlib/src/tests/memoryindex
parentf2e89d3361cae0e2e74bac89405a175d6ecf5e98 (diff)
Add noexcept as indicated by -Wnoeexcept
Diffstat (limited to 'searchlib/src/tests/memoryindex')
-rw-r--r--searchlib/src/tests/memoryindex/field_index_remover/field_index_remover_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/tests/memoryindex/field_index_remover/field_index_remover_test.cpp b/searchlib/src/tests/memoryindex/field_index_remover/field_index_remover_test.cpp
index af7ea9be481..584a8121b16 100644
--- a/searchlib/src/tests/memoryindex/field_index_remover/field_index_remover_test.cpp
+++ b/searchlib/src/tests/memoryindex/field_index_remover/field_index_remover_test.cpp
@@ -16,10 +16,10 @@ using namespace search::memoryindex;
struct WordFieldPair {
vespalib::string _word;
uint32_t _fieldId;
- WordFieldPair(vespalib::stringref word, uint32_t fieldId)
+ WordFieldPair(vespalib::stringref word, uint32_t fieldId) noexcept
: _word(word), _fieldId(fieldId)
{}
- bool operator<(const WordFieldPair &rhs) const {
+ bool operator<(const WordFieldPair &rhs) const noexcept {
if (_word != rhs._word) {
return _word < rhs._word;
}