From b81c97572fdfd44b838752c94ae0f89e59f9459f Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 17 Mar 2024 19:35:07 +0100 Subject: unrelated: make Ref.hpp classes constructors explicit. Signed-off-by: Amlal El Mahrouss --- Private/NewKit/Ref.hpp | 4 ++-- 1 file 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 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 &operator->() { MUST_PASS(m_Ref); -- cgit v1.2.3