| 709 | } |
| 710 | |
| 711 | void WeakCallbackHolder::setThisObject(ReferenceCountedObject* thisObj) |
| 712 | { |
| 713 | thisObject = dynamic_cast<DebugableObjectBase*>(thisObj); |
| 714 | |
| 715 | // Must call incRefCount before this method |
| 716 | jassert(weakCallback == nullptr || (anonymousFunctionRef.isObject() || !weakCallback->allowRefCount())); |
| 717 | } |
| 718 | |
| 719 | void WeakCallbackHolder::setThisObjectRefCounted(const var& t) |
| 720 | { |