| 142 | { |
| 143 | template <typename U> |
| 144 | CefRefCount(const U *) noexcept : T{}, ref_(1) { |
| 145 | T::base.size = sizeof(U); |
| 146 | T::base.add_ref = _Base_AddRef; |
| 147 | T::base.release = _Base_Release; |
| 148 | T::base.has_one_ref = _Base_HasOneRef; |
| 149 | T::base.has_at_least_one_ref = _Base_HasAtLeastOneRef; |
| 150 | self_delete_ = [](void *self) noexcept { delete static_cast<U *>(self); }; |
| 151 | } |
| 152 | |
| 153 | CefRefCount(nullptr_t) noexcept : CefRefCount(static_cast<T *>(nullptr)) {} |
| 154 |
nothing calls this directly
no outgoing calls
no test coverage detected