aboutsummaryrefslogtreecommitdiff
path: root/src/string_map.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-04-26 13:25:08 +0100
committergingerBill <bill@gingerbill.org>2024-04-26 13:25:08 +0100
commita3e77dcc3bc4cf7d0548afa73d38914354761aa0 (patch)
tree5c71048f33e4c1a87c6cb68b8e3af510b5e01bfe /src/string_map.cpp
parent7305478261700fc95f6748ba3091978a3fe7b1f3 (diff)
Minor clean up
Diffstat (limited to 'src/string_map.cpp')
-rw-r--r--src/string_map.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/string_map.cpp b/src/string_map.cpp
index f8b86a950..894579a03 100644
--- a/src/string_map.cpp
+++ b/src/string_map.cpp
@@ -2,8 +2,8 @@ GB_STATIC_ASSERT(sizeof(MapIndex) == sizeof(u32));
struct StringHashKey {
- u32 hash;
String string;
+ u32 hash;
operator String() const noexcept {
return this->string;
@@ -329,11 +329,12 @@ gb_internal StringMapEntry<T> const *begin(StringMap<T> const &m) noexcept {
template <typename T>
-gb_internal StringMapEntry<T> *end(StringMap<T> &m) {
+gb_internal StringMapEntry<T> *end(StringMap<T> &m) noexcept {
return m.entries + m.count;
}
template <typename T>
gb_internal StringMapEntry<T> const *end(StringMap<T> const &m) noexcept {
return m.entries + m.count;
-} \ No newline at end of file
+}
+