Static assertions in WTF::adoptPtr should point to using adoptRef for ref-counted...
authorzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Oct 2013 15:46:38 +0000 (15:46 +0000)
committerzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Oct 2013 15:46:38 +0000 (15:46 +0000)
commitfe6bf704c0c7eb7a5fc162dd508bf2d312cfa0d1
tree7dd5d79524613bec021228e973144c3610f68305
parentfde94f85a7e7a2bd8ada37249fe4502bfecedfc9
Static assertions in WTF::adoptPtr should point to using adoptRef for ref-counted objects
https://bugs.webkit.org/show_bug.cgi?id=122745

Reviewed by Anders Carlsson.

* wtf/PassOwnPtr.h:
(WTF::adoptPtr): When the object's type is convertible to the RefCountedBase or ThreadSafeRefCountedBase type,
the static assertion should note that adoptRef should be used instead.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@157402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/PassOwnPtr.h