summaryrefslogtreecommitdiffhomepage
path: root/Private
diff options
context:
space:
mode:
Diffstat (limited to 'Private')
-rw-r--r--Private/NewKit/Ref.hpp4
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);