diff options
author | Jacques Lucke <jacques@blender.org> | 2021-09-14 16:18:06 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-09-14 16:18:17 +0300 |
commit | 426e2663a0891d16a497a33b273a5cee1e09f929 (patch) | |
tree | 1b83003558bcd9f2fb4c6066e745bcfb61addc06 /source/blender/blenlib/BLI_resource_scope.hh | |
parent | fd60f6713a9d9e6f7d706b53bf1311f2f1cd9031 (diff) |
Fix: use type name instead of variable name
That was a typo in rBfd60f6713a9d9e6f7d706b53bf1311f2f1cd9031.
Diffstat (limited to 'source/blender/blenlib/BLI_resource_scope.hh')
-rw-r--r-- | source/blender/blenlib/BLI_resource_scope.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_resource_scope.hh b/source/blender/blenlib/BLI_resource_scope.hh index c3c0af4af50..b7720b52ecc 100644 --- a/source/blender/blenlib/BLI_resource_scope.hh +++ b/source/blender/blenlib/BLI_resource_scope.hh @@ -141,7 +141,7 @@ class ResourceScope : NonCopyable, NonMovable { */ template<typename Func> void add_destruct_call(Func func, const char *name) { - void *buffer = m_allocator.allocate(sizeof(func), alignof(func)); + void *buffer = m_allocator.allocate(sizeof(Func), alignof(Func)); new (buffer) Func(std::move(func)); this->add( buffer, [](void *data) { (*(Func *)data)(); }, name); |