mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 01:14:40 +00:00
Minor clean up
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user