diff options
-rw-r--r-- | vespalib/src/tests/stllike/hash_test.cpp | 4 | ||||
-rw-r--r-- | vespalib/src/vespa/vespalib/datastore/unique_store_enumerator.hpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vespalib/src/tests/stllike/hash_test.cpp b/vespalib/src/tests/stllike/hash_test.cpp index 5cba6f73e10..c530bbdb14a 100644 --- a/vespalib/src/tests/stllike/hash_test.cpp +++ b/vespalib/src/tests/stllike/hash_test.cpp @@ -455,8 +455,8 @@ class WrappedKey public: WrappedKey() : _key() { } WrappedKey(int key) : _key(std::make_unique<const int>(key)) { } - size_t hash() const { return vespalib::hash<int>()(*_key); } - bool operator==(const WrappedKey &rhs) const { return *_key == *rhs._key; } + size_t hash() const noexcept { return vespalib::hash<int>()(*_key); } + bool operator==(const WrappedKey &rhs) const noexcept { return *_key == *rhs._key; } }; } diff --git a/vespalib/src/vespa/vespalib/datastore/unique_store_enumerator.hpp b/vespalib/src/vespa/vespalib/datastore/unique_store_enumerator.hpp index 83e9b10c6d6..ec3b0c54bda 100644 --- a/vespalib/src/vespa/vespalib/datastore/unique_store_enumerator.hpp +++ b/vespalib/src/vespa/vespalib/datastore/unique_store_enumerator.hpp @@ -56,7 +56,7 @@ void UniqueStoreEnumerator<RefT>::enumerateValues() { _next_enum_val = 1; - _dict_snapshot->foreach_key([this](EntryRef ref) { enumerateValue(ref); }); + _dict_snapshot->foreach_key([this](EntryRef ref) noexcept { enumerateValue(ref); }); } template <typename RefT> |