summaryrefslogtreecommitdiff
path: root/source/core/slang-string.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-string.h')
-rw-r--r--source/core/slang-string.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/core/slang-string.h b/source/core/slang-string.h
index 5eb113dc1..02a43a806 100644
--- a/source/core/slang-string.h
+++ b/source/core/slang-string.h
@@ -170,9 +170,9 @@ namespace Slang
UnownedStringSlice trim() const;
- int GetHashCode() const
+ HashCode getHashCode() const
{
- return Slang::GetHashCode(m_begin, size_t(m_end - m_begin));
+ return Slang::getHashCode(m_begin, size_t(m_end - m_begin));
}
template <size_t SIZE>
@@ -802,9 +802,9 @@ namespace Slang
return contains(str.begin());
}
- int GetHashCode() const
+ HashCode getHashCode() const
{
- return Slang::GetHashCode((const char*)begin());
+ return Slang::getHashCode(StringRepresentation::asSlice(m_buffer));
}
UnownedStringSlice getUnownedSlice() const