diff options
Diffstat (limited to 'common/comptr.h')
-rw-r--r-- | common/comptr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/comptr.h b/common/comptr.h index c238991a..ab9d4c53 100644 --- a/common/comptr.h +++ b/common/comptr.h @@ -49,7 +49,7 @@ public: return *this; } - operator bool() const noexcept { return mPtr != nullptr; } + explicit operator bool() const noexcept { return mPtr != nullptr; } T& operator*() const noexcept { return *mPtr; } T* operator->() const noexcept { return mPtr; } |