Changeset 195611 in webkit


Ignore:
Timestamp:
Jan 26, 2016 1:09:24 PM (8 years ago)
Author:
andersca@apple.com
Message:

BlockPtr needs boolean operators
https://bugs.webkit.org/show_bug.cgi?id=153506

Reviewed by Tim Horton.

  • wtf/BlockPtr.h:
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r195585 r195611  
     12016-01-26  Anders Carlsson  <andersca@apple.com>
     2
     3        BlockPtr needs boolean operators
     4        https://bugs.webkit.org/show_bug.cgi?id=153506
     5
     6        Reviewed by Tim Horton.
     7
     8        * wtf/BlockPtr.h:
     9
    1102016-01-25  Filip Pizlo  <fpizlo@apple.com>
    211
  • trunk/Source/WTF/wtf/BlockPtr.h

    r194665 r195611  
    8282    }
    8383
     84    explicit operator bool() const { return m_block; }
     85    bool operator!() const { return !m_block; }
     86
    8487    R operator()(Args&&... arguments) const
    8588    {
Note: See TracChangeset for help on using the changeset viewer.