[webkit-help] Passing RefPtr<T> to function expecting Ref<T>

Konstantin Tokarev annulen at yandex.ru
Sun Mar 26 12:28:13 PDT 2017


Hello,

What is the most appropriate way to do subject, given that ptr is RefPtr<T>?

1. f(*ptr)
2. f(ptr.releaseNonNull()) 

Any difference when ptr is lvalue or rvalue?

-- 
Regards,
Konstantin


More information about the webkit-help mailing list