⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 264180 in webkit


Ignore:
Timestamp:
Jul 9, 2020, 10:33:55 AM (6 years ago)
Author:
calvaris@igalia.com
Message:

Simplify BoxPtr::create
​https://bugs.webkit.org/show_bug.cgi?id=214144

Reviewed by Darin Adler.

  • wtf/BoxPtr.h:

(WTF::createBoxPtr): Use the alias instead of the unrolled type.

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r264178 r264180  
     12020-07-09  Xabier Rodriguez Calvar  <calvaris@igalia.com>
     2
     3        Simplify BoxPtr::create
     4        https://bugs.webkit.org/show_bug.cgi?id=214144
     5
     6        Reviewed by Darin Adler.
     7
     8        * wtf/BoxPtr.h:
     9        (WTF::createBoxPtr): Use the alias instead of the unrolled type.
     10
    1112020-07-09  Per Arne Vollan  <pvollan@apple.com>
    212
  • trunk/Source/WTF/wtf/BoxPtr.h

    r264163 r264180  
    4949template<typename T> BoxPtr<T> createBoxPtr(T* ptr)
    5050{
    51     return Box<std::unique_ptr<T, BoxPtrDeleter<T>>>::create(ptr);
     51    return BoxPtr<T>::create(ptr);
    5252}
    5353
Note: See TracChangeset for help on using the changeset viewer.