diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-02 09:05:36 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-02 09:05:36 +0200 |
commit | 8e64f794f08cb3e4f930df5bb17c3a7061516cca (patch) | |
tree | 5f4475a38af6a9458ab954fbd03df769ef63d59c /src/deep.h | |
parent | 261a42021e44e1d3c3cfb3fc6576d3d269241c93 (diff) | |
download | lanes-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.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |
39 | struct DeepPrelude | 39 | struct 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 | }; |