summaryrefslogtreecommitdiffhomepage
path: root/serialize/savegame.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-06-08 08:20:12 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-06-08 10:38:53 +0200
commit39670daf26c4fbbfe9148dec30c9f0e075eff404 (patch)
tree50778183928c5aad1a9308a86852bb4a68581b30 /serialize/savegame.cpp
parent63edd105d758a39b856f9099b339de30895df8ac (diff)
improve hash api and hash test
Diffstat (limited to 'serialize/savegame.cpp')
-rw-r--r--serialize/savegame.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/serialize/savegame.cpp b/serialize/savegame.cpp
index 5c7e9b04..024ff85a 100644
--- a/serialize/savegame.cpp
+++ b/serialize/savegame.cpp
@@ -47,7 +47,6 @@ using floormat::Serialize::binary_reader;
using floormat::Serialize::binary_writer;
using floormat::Serialize::atlas_type;
using floormat::Serialize::maybe_byteswap;
-using floormat::Hash::fnvhash_buf;
namespace {
@@ -61,7 +60,7 @@ private:
FILE* s;
};
-struct string_hasher { CORRADE_ALWAYS_INLINE size_t operator()(StringView s) const { return fnvhash_buf(s.data(), s.size()); } };
+struct string_hasher { CORRADE_ALWAYS_INLINE size_t operator()(StringView s) const { return hash_buf(s.data(), s.size()); } };
template<typename T> concept Number = std::is_arithmetic_v<std::remove_cvref_t<T>>;
template<typename T> concept Enum = std::is_enum_v<std::remove_cvref_t<T>>;