aboutsummaryrefslogtreecommitdiff
path: root/src/deep.h
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-05-02 09:05:36 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-05-02 09:05:36 +0200
commit8e64f794f08cb3e4f930df5bb17c3a7061516cca (patch)
tree5f4475a38af6a9458ab954fbd03df769ef63d59c /src/deep.h
parent261a42021e44e1d3c3cfb3fc6576d3d269241c93 (diff)
downloadlanes-8e64f794f08cb3e4f930df5bb17c3a7061516cca.tar.gz
lanes-8e64f794f08cb3e4f930df5bb17c3a7061516cca.tar.bz2
lanes-8e64f794f08cb3e4f930df5bb17c3a7061516cca.zip
Progressively applying the coding rules
Diffstat (limited to 'src/deep.h')
-rw-r--r--src/deep.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/deep.h b/src/deep.h
index 6f4e64d..784952c 100644
--- a/src/deep.h
+++ b/src/deep.h
@@ -38,14 +38,14 @@ static constexpr UniqueKey kDeepVersion{ 0x91171AEC6641E9DBull, "kDeepVersion" }
38// a deep userdata is a full userdata that stores a single pointer to the actual DeepPrelude-derived object 38// a deep userdata is a full userdata that stores a single pointer to the actual DeepPrelude-derived object
39struct DeepPrelude 39struct DeepPrelude
40{ 40{
41 UniqueKey const m_magic{ kDeepVersion }; 41 UniqueKey const magic{ kDeepVersion };
42 // when stored in a keeper state, the full userdata doesn't have a metatable, so we need direct access to the factory 42 // when stored in a keeper state, the full userdata doesn't have a metatable, so we need direct access to the factory
43 class DeepFactory& m_factory; 43 class DeepFactory& factory;
44 // data is destroyed when refcount is 0 44 // data is destroyed when refcount is 0
45 std::atomic<int> m_refcount{ 0 }; 45 std::atomic<int> refcount{ 0 };
46 46
47 DeepPrelude(DeepFactory& factory_) 47 DeepPrelude(DeepFactory& factory_)
48 : m_factory{ factory_ } 48 : factory{ factory_ }
49 { 49 {
50 } 50 }
51}; 51};