Ignore:
Timestamp:
Feb 18, 2012, 1:30:58 PM (13 years ago)
Author:
[email protected]
Message:

Fix the libc++ build.

Reviewed by Anders Carlsson.

  • heap/Weak.h:

Libc++'s nullptr emulation does not allow default construction
of the nullptr_t type. Work around this with the arguably clearer
just returning nullptr.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/heap/Weak.h

    r108010 r108168  
    143143
    144144    typedef std::nullptr_t EmptyValueType;
    145     static EmptyValueType emptyValue() { return EmptyValueType(); }
     145    static EmptyValueType emptyValue() { return nullptr; }
    146146
    147147    typedef JSC::PassWeak<T> PassInType;
Note: See TracChangeset for help on using the changeset viewer.