diff options
Diffstat (limited to 'source/core/slang-smart-pointer.h')
| -rw-r--r-- | source/core/slang-smart-pointer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/core/slang-smart-pointer.h b/source/core/slang-smart-pointer.h index 1bbcffe47..53ac010ed 100644 --- a/source/core/slang-smart-pointer.h +++ b/source/core/slang-smart-pointer.h @@ -24,6 +24,8 @@ namespace Slang : referenceCount(0) {} + RefObject& operator=(const RefObject& rhs) = default; + virtual ~RefObject() {} @@ -152,13 +154,13 @@ namespace Slang releaseReference(old); } - int GetHashCode() + HashCode getHashCode() { // Note: We need a `RefPtr<T>` to hash the same as a `T*`, // so that a `T*` can be used as a key in a dictionary with // `RefPtr<T>` keys, and vice versa. // - return Slang::GetHashCode(pointer); + return Slang::getHashCode(pointer); } bool operator==(const T * ptr) const |
