Index: Source/core/workers/SharedWorkerGlobalScope.cpp |
diff --git a/Source/core/workers/SharedWorkerGlobalScope.cpp b/Source/core/workers/SharedWorkerGlobalScope.cpp |
index 43254a1c147abc2bad530483c7b84b6430f5604b..fde138d65cb50f99d883b4f0006cbaad78365b29 100644 |
--- a/Source/core/workers/SharedWorkerGlobalScope.cpp |
+++ b/Source/core/workers/SharedWorkerGlobalScope.cpp |
@@ -43,10 +43,10 @@ |
namespace WebCore { |
-PassRefPtr<MessageEvent> createConnectEvent(PassRefPtr<MessagePort> port) |
+PassRefPtr<MessageEvent> createConnectEvent(PassRefPtr<MessagePort> prpPort) |
{ |
- RefPtr<MessagePort> sourcePort = port; |
- RefPtr<MessageEvent> event = MessageEvent::create(adoptPtr(new MessagePortArray(1, sourcePort)), "", "", sourcePort); |
+ RefPtr<MessagePort> port = prpPort; |
+ RefPtr<MessageEvent> event = MessageEvent::create(adoptPtr(new MessagePortArray(1, port)), String(), String(), port); |
event->initEvent(eventNames().connectEvent, false, false); |
return event.release(); |
} |