Index: Source/modules/websockets/CloseEvent.h |
diff --git a/Source/modules/websockets/CloseEvent.h b/Source/modules/websockets/CloseEvent.h |
index a12009393bd347833ea0c943552cfc8efd743236..9256228214e474025856a9644235f21d47eeb92e 100644 |
--- a/Source/modules/websockets/CloseEvent.h |
+++ b/Source/modules/websockets/CloseEvent.h |
@@ -50,19 +50,19 @@ struct CloseEventInit : public EventInit { |
class CloseEvent FINAL : public Event { |
public: |
- static PassRefPtrWillBeRawPtr<CloseEvent> create() |
+ static PassRefPtr<CloseEvent> create() |
{ |
- return adoptRefWillBeRefCountedGarbageCollected(new CloseEvent()); |
+ return adoptRef(new CloseEvent()); |
} |
- static PassRefPtrWillBeRawPtr<CloseEvent> create(bool wasClean, unsigned short code, const String& reason) |
+ static PassRefPtr<CloseEvent> create(bool wasClean, unsigned short code, const String& reason) |
{ |
- return adoptRefWillBeRefCountedGarbageCollected(new CloseEvent(wasClean, code, reason)); |
+ return adoptRef(new CloseEvent(wasClean, code, reason)); |
} |
- static PassRefPtrWillBeRawPtr<CloseEvent> create(const AtomicString& type, const CloseEventInit& initializer) |
+ static PassRefPtr<CloseEvent> create(const AtomicString& type, const CloseEventInit& initializer) |
{ |
- return adoptRefWillBeRefCountedGarbageCollected(new CloseEvent(type, initializer)); |
+ return adoptRef(new CloseEvent(type, initializer)); |
} |
bool wasClean() const { return m_wasClean; } |