aboutsummaryrefslogtreecommitdiff
path: root/src/universe.h
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-03-28 17:25:51 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2024-03-28 17:25:51 +0100
commit5d365d54efef5dfd0dca814346bfee791eacab90 (patch)
treea86b216c2474a590237154944bb2ee70fe9e2ed2 /src/universe.h
parent089f68cf6d18799028eb12cc16bbe2f8cf5e57c3 (diff)
downloadlanes-5d365d54efef5dfd0dca814346bfee791eacab90.tar.gz
lanes-5d365d54efef5dfd0dca814346bfee791eacab90.tar.bz2
lanes-5d365d54efef5dfd0dca814346bfee791eacab90.zip
C++ migration: lots of noise, but it's only some minor code cleanup
Diffstat (limited to '')
-rw-r--r--src/universe.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/universe.h b/src/universe.h
index a31e6c2..1079915 100644
--- a/src/universe.h
+++ b/src/universe.h
@@ -83,9 +83,9 @@ class ProtectedAllocator : public AllocatorDefinition
83 83
84 static void* protected_lua_Alloc(void* ud_, void* ptr_, size_t osize_, size_t nsize_) 84 static void* protected_lua_Alloc(void* ud_, void* ptr_, size_t osize_, size_t nsize_)
85 { 85 {
86 ProtectedAllocator* const s{ static_cast<ProtectedAllocator*>(ud_) }; 86 ProtectedAllocator* const allocator{ static_cast<ProtectedAllocator*>(ud_) };
87 std::lock_guard<std::mutex> guard{ s->m_lock }; 87 std::lock_guard<std::mutex> guard{ allocator->m_lock };
88 return s->m_allocF(s->m_allocUD, ptr_, osize_, nsize_); 88 return allocator->m_allocF(allocator->m_allocUD, ptr_, osize_, nsize_);
89 } 89 }
90 90
91 public: 91 public: