diff options
| author | Per Larsson <[email protected]> | 2021-12-09 17:02:21 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2021-12-09 17:02:21 +0100 |
| commit | 7232c5b126028ef859977d7a2a65fe9ca7b7300f (patch) | |
| tree | bfaa76f874ae65279b76f82a9eeb39075321b672 /zencore/include | |
| parent | Merged main. (diff) | |
| download | zen-7232c5b126028ef859977d7a2a65fe9ca7b7300f.tar.xz zen-7232c5b126028ef859977d7a2a65fe9ca7b7300f.zip | |
Format fix.
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/iobuffer.h | 10 | ||||
| -rw-r--r-- | zencore/include/zencore/refcount.h | 5 |
2 files changed, 7 insertions, 8 deletions
diff --git a/zencore/include/zencore/iobuffer.h b/zencore/include/zencore/iobuffer.h index 9d18a55e9..012e9a9df 100644 --- a/zencore/include/zencore/iobuffer.h +++ b/zencore/include/zencore/iobuffer.h @@ -2,9 +2,9 @@ #pragma once -#include <atomic> #include <memory.h> #include <zencore/memory.h> +#include <atomic> #include "refcount.h" #include "zencore.h" @@ -208,11 +208,11 @@ public: inline uint32_t GetRefCount() const { return m_RefCount; } protected: - uint32_t m_RefCount = 0; + uint32_t m_RefCount = 0; mutable std::atomic<uint32_t> m_Flags{0}; - mutable const void* m_DataPtr = nullptr; - size_t m_DataBytes = 0; - RefPtr<const IoBufferCore> m_OuterCore; + mutable const void* m_DataPtr = nullptr; + size_t m_DataBytes = 0; + RefPtr<const IoBufferCore> m_OuterCore; enum { diff --git a/zencore/include/zencore/refcount.h b/zencore/include/zencore/refcount.h index 1873ce48e..7167ab3b5 100644 --- a/zencore/include/zencore/refcount.h +++ b/zencore/include/zencore/refcount.h @@ -117,9 +117,8 @@ public: inline ~Ref() { m_Ref && m_Ref->Release(); } template<typename DerivedType> - requires std::derived_from<DerivedType, T> inline Ref(const Ref<DerivedType>& Rhs) : Ref(Rhs.m_Ref) - { - } + requires std::derived_from<DerivedType, T> + inline Ref(const Ref<DerivedType>& Rhs) : Ref(Rhs.m_Ref) {} [[nodiscard]] inline bool IsNull() const { return m_Ref == nullptr; } inline explicit operator bool() const { return m_Ref != nullptr; } |