MCPcopy Create free account
hub / github.com/Snapchat/Valdi / adopt

Method adopt

third-party/jscore/include/JavaScriptCore/JSRetainPtr.h:155–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155template<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
163template<typename T> template<typename U> inline JSRetainPtr<T>& JSRetainPtr<T>::operator=(U* optr)
164{

Callers

nothing calls this directly

Calls 1

JSReleaseFunction · 0.85

Tested by

no test coverage detected