| 103 | } |
| 104 | |
| 105 | template<typename T> inline void JSRetainPtr<T>::clear() |
| 106 | { |
| 107 | if (T ptr = m_ptr) { |
| 108 | m_ptr = 0; |
| 109 | JSRelease(ptr); |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | template<typename T> inline T JSRetainPtr<T>::leakRef() |
| 114 | { |
nothing calls this directly
no test coverage detected