Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/functions/FN_cpp_type.hh')
-rw-r--r--source/blender/functions/FN_cpp_type.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/functions/FN_cpp_type.hh b/source/blender/functions/FN_cpp_type.hh
index 665296f30e1..54ea0103fe5 100644
--- a/source/blender/functions/FN_cpp_type.hh
+++ b/source/blender/functions/FN_cpp_type.hh
@@ -661,7 +661,7 @@ class CPPType : NonCopyable, NonMovable {
uint64_t hash() const
{
- return DefaultHash<const CPPType *>{}(this);
+ return get_default_hash(this);
}
template<typename T> bool is() const
@@ -674,6 +674,6 @@ class CPPType : NonCopyable, NonMovable {
/* Utility for allocating an uninitialized buffer for a single value of the given #CPPType. */
#define BUFFER_FOR_CPP_TYPE_VALUE(type, variable_name) \
- blender::DynamicStackBuffer<64, 64> stack_buffer_for_##variable_name(type.size(), \
- type.alignment()); \
+ blender::DynamicStackBuffer<64, 64> stack_buffer_for_##variable_name((type).size(), \
+ (type).alignment()); \
void *variable_name = stack_buffer_for_##variable_name.buffer();