diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-17 19:35:07 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-17 19:35:07 +0100 |
| commit | b81c97572fdfd44b838752c94ae0f89e59f9459f (patch) | |
| tree | 8cdf28573d573865e1e8679d28ef9efaa8b0bf81 /Private | |
| parent | 9898520f721220a2af4be59fd92e8ad8afcd4287 (diff) | |
unrelated: make Ref.hpp classes constructors explicit.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private')
| -rw-r--r-- | Private/NewKit/Ref.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Private/NewKit/Ref.hpp b/Private/NewKit/Ref.hpp index 5ae7ea80..aac5537f 100644 --- a/Private/NewKit/Ref.hpp +++ b/Private/NewKit/Ref.hpp @@ -14,7 +14,7 @@ namespace HCore { template <typename T> class Ref final { public: - Ref() = default; + explicit Ref() = default; ~Ref() = default; public: @@ -47,7 +47,7 @@ class NonNullRef final { NonNullRef() = delete; NonNullRef(nullPtr) = delete; - NonNullRef(T *ref) : m_Ref(ref, true) {} + explicit NonNullRef(T *ref) : m_Ref(ref, true) {} Ref<T> &operator->() { MUST_PASS(m_Ref); |
