diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-08-01 12:39:24 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2019-08-01 12:39:24 +0200 |
commit | de80721b562a198306b59355659d2ecccf677f95 (patch) | |
tree | 4ab203f06a9218944d7fb3b89e30481d0fbd9750 /searchlib | |
parent | b3cff606d0314b6815a7800f263aa47aad99d5f4 (diff) |
Use const operator<.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/tests/memoryindex/field_index_remover/field_index_remover_test.cpp | 2 |
1 files changed, 1 insertions, 1 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 c0e8871b80a..f11df42f6b1 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 @@ -19,7 +19,7 @@ struct WordFieldPair { WordFieldPair(vespalib::stringref word, uint32_t fieldId) : _word(word), _fieldId(fieldId) {} - bool operator<(const WordFieldPair &rhs) { + bool operator<(const WordFieldPair &rhs) const { if (_word != rhs._word) { return _word < rhs._word; } |