[Bf-blender-cvs] [426e2663a08] master: Fix: use type name instead of variable name

Jacques Lucke noreply at git.blender.org
Tue Sep 14 15:18:34 CEST 2021


Commit: 426e2663a0891d16a497a33b273a5cee1e09f929
Author: Jacques Lucke
Date:   Tue Sep 14 15:18:06 2021 +0200
Branches: master
https://developer.blender.org/rB426e2663a0891d16a497a33b273a5cee1e09f929

Fix: use type name instead of variable name

That was a typo in rBfd60f6713a9d9e6f7d706b53bf1311f2f1cd9031.

===================================================================

M	source/blender/blenlib/BLI_resource_scope.hh

===================================================================

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);



More information about the Bf-blender-cvs mailing list