| 153 | } |
| 154 | |
| 155 | template<typename T> inline void JSRetainPtr<T>::adopt(T optr) |
| 156 | { |
| 157 | T ptr = m_ptr; |
| 158 | m_ptr = optr; |
| 159 | if (ptr) |
| 160 | JSRelease(ptr); |
| 161 | } |
| 162 | |
| 163 | template<typename T> template<typename U> inline JSRetainPtr<T>& JSRetainPtr<T>::operator=(U* optr) |
| 164 | { |
nothing calls this directly
no test coverage detected