Ref: A smart pointer for the reference age.
<https://webkit.org/b/120570> Reviewed by Antti Koivisto. Source/WebCore: Use Ref<T> for various stack guards where null checking isn't needed. Source/WTF: Add a very simple simple Ref<T> smart pointer class that is never null. It's initialized by passing a T& to the constructor and cannot be assigned to. operator-> is not overloaded, to prevent unsafe-looking code. The value is extracted by "T& get()", since C++ does not let you override operator.() * wtf/Ref.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Showing with 234 additions and 139 deletions