From 31b6f82db1ef1c1cc47d806d7a293ea1d8979c13 Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Sat, 17 Dec 2022 16:05:37 -0500 Subject: [PATCH] Cleanup --- indra/llcommon/lluuid.h | 4 ++-- indra/llprimitive/llmaterialid.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/indra/llcommon/lluuid.h b/indra/llcommon/lluuid.h index 8d62e430361..56ed6437d9e 100644 --- a/indra/llcommon/lluuid.h +++ b/indra/llcommon/lluuid.h @@ -192,7 +192,7 @@ class LL_COMMON_API LLUUID friend std::size_t hash_value(LLUUID const& id) { - return boost::hash_range(id.mData, id.mData + UUID_BYTES); + return boost::hash_value(id.mData); } // xor functions. Useful since any two random uuids xored together @@ -281,7 +281,7 @@ namespace std { { size_t operator()(const LLUUID & id) const { - return boost::hash_range(id.mData, id.mData + UUID_BYTES); + return boost::hash_value(id.mData); } }; } diff --git a/indra/llprimitive/llmaterialid.h b/indra/llprimitive/llmaterialid.h index e90deea7c31..5fa1ce85c1c 100644 --- a/indra/llprimitive/llmaterialid.h +++ b/indra/llprimitive/llmaterialid.h @@ -140,7 +140,7 @@ class LLMaterialID friend std::size_t hash_value(LLMaterialID const& id) { - return boost::hash_range(id.mID, id.mID + MATERIAL_ID_SIZE); + return boost::hash_value(id.mID); } // END BOOST -- GitLab