Index: Source/modules/webmidi/MIDIConnectionEvent.h |
diff --git a/Source/modules/webmidi/MIDIConnectionEvent.h b/Source/modules/webmidi/MIDIConnectionEvent.h |
index de2c53beb95a36fbac3f4acbdd2088e80783f0df..703620751f120ef6e37d1e630be3dcc68cdcf71b 100644 |
--- a/Source/modules/webmidi/MIDIConnectionEvent.h |
+++ b/Source/modules/webmidi/MIDIConnectionEvent.h |
@@ -47,19 +47,19 @@ struct MIDIConnectionEventInit : public EventInit { |
class MIDIConnectionEvent FINAL : public Event { |
public: |
- static PassRefPtr<MIDIConnectionEvent> create() |
+ static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create() |
{ |
- return adoptRef(new MIDIConnectionEvent()); |
+ return adoptRefWillBeRefCountedGarbageCollected(new MIDIConnectionEvent()); |
} |
- static PassRefPtr<MIDIConnectionEvent> create(const AtomicString& type, PassRefPtr<MIDIPort> port) |
+ static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create(const AtomicString& type, PassRefPtr<MIDIPort> port) |
{ |
- return adoptRef(new MIDIConnectionEvent(type, port)); |
+ return adoptRefWillBeRefCountedGarbageCollected(new MIDIConnectionEvent(type, port)); |
} |
- static PassRefPtr<MIDIConnectionEvent> create(const AtomicString& type, const MIDIConnectionEventInit& initializer) |
+ static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create(const AtomicString& type, const MIDIConnectionEventInit& initializer) |
{ |
- return adoptRef(new MIDIConnectionEvent(type, initializer)); |
+ return adoptRefWillBeRefCountedGarbageCollected(new MIDIConnectionEvent(type, initializer)); |
} |
RefPtr<MIDIPort> port() { return m_port; } |