aboutsummaryrefslogtreecommitdiffstats
path: root/common/comptr.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-02-20 22:04:19 -0800
committerChris Robinson <[email protected]>2022-02-20 22:04:19 -0800
commit6c643e59e94ee14d6c8509d46a39ed6a53f72a76 (patch)
tree55d15ed688cf69ac0243911dcc01d938ad9560f4 /common/comptr.h
parent023ad6320be73d1cee3facad1722e94d7258f2bb (diff)
Make a couple more operator bools explicit
Diffstat (limited to 'common/comptr.h')
-rw-r--r--common/comptr.h2
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; }