Ignore:
Timestamp:
Nov 5, 2014, 5:21:52 PM (11 years ago)
Author:
[email protected]
Message:

Use std::unique_ptr in JSClassRef and JSCallbackObject
https://bugs.webkit.org/show_bug.cgi?id=138402

Reviewed by Geoffrey Garen.

  • API/JSCallbackObject.h: Use std::unique_ptr instead of OwnPtr|PassOwnPtr.

(JSC::JSCallbackObjectData::setPrivateProperty): ditto.

  • API/JSClassRef.cpp: ditto.
  • API/JSClassRef.h: ditto.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/JSCallbackObject.h

    r174723 r175651  
    5757    {
    5858        if (!m_privateProperties)
    59             m_privateProperties = adoptPtr(new JSPrivatePropertyMap);
     59            m_privateProperties = std::make_unique<JSPrivatePropertyMap>();
    6060        m_privateProperties->setPrivateProperty(vm, owner, propertyName, value);
    6161    }
     
    109109        PrivatePropertyMap m_propertyMap;
    110110    };
    111     OwnPtr<JSPrivatePropertyMap> m_privateProperties;
     111    std::unique_ptr<JSPrivatePropertyMap> m_privateProperties;
    112112    virtual void finalize(Handle<Unknown>, void*) override;
    113113};
Note: See TracChangeset for help on using the changeset viewer.