diff options
| author | Stefan Boberg <[email protected]> | 2021-10-23 19:00:54 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-10-23 19:00:54 +0200 |
| commit | 62534b176b04cd7d6b12ac993726e2986b719dbb (patch) | |
| tree | 63db6f5ebd235ce84f94d2d54912d03fd32af10e /zencore/include | |
| parent | cas: fixed some warnings (diff) | |
| download | zen-62534b176b04cd7d6b12ac993726e2986b719dbb.tar.xz zen-62534b176b04cd7d6b12ac993726e2986b719dbb.zip | |
clang-format
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/refcount.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zencore/include/zencore/refcount.h b/zencore/include/zencore/refcount.h index 7167ab3b5..1873ce48e 100644 --- a/zencore/include/zencore/refcount.h +++ b/zencore/include/zencore/refcount.h @@ -117,8 +117,9 @@ 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; } |