Add weak pointer handling (#3763)
This commit is contained in:
@@ -129,7 +129,9 @@ const LayerTypeInfo* <%- camelize(type) %>Layer::Impl::staticTypeInfo() noexcept
|
||||
: Layer(std::move(impl_)) {
|
||||
}
|
||||
|
||||
<%- camelize(type) %>Layer::~<%- camelize(type) %>Layer() = default;
|
||||
<%- camelize(type) %>Layer::~<%- camelize(type) %>Layer() {
|
||||
weakFactory.invalidateWeakPtrs();
|
||||
}
|
||||
|
||||
const <%- camelize(type) %>Layer::Impl& <%- camelize(type) %>Layer::impl() const {
|
||||
return static_cast<const Impl&>(*baseImpl);
|
||||
|
||||
Reference in New Issue
Block a user