diff options
Diffstat (limited to 'Source/WebCore/dom/MessageChannel.h')
-rw-r--r-- | Source/WebCore/dom/MessageChannel.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/WebCore/dom/MessageChannel.h b/Source/WebCore/dom/MessageChannel.h index 5236dea3a..33779b63c 100644 --- a/Source/WebCore/dom/MessageChannel.h +++ b/Source/WebCore/dom/MessageChannel.h @@ -10,10 +10,10 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY + * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR @@ -24,10 +24,8 @@ * */ -#ifndef MessageChannel_h -#define MessageChannel_h +#pragma once -#include <wtf/PassRefPtr.h> #include <wtf/RefCounted.h> #include <wtf/RefPtr.h> @@ -38,7 +36,7 @@ namespace WebCore { class MessageChannel : public RefCounted<MessageChannel> { public: - static PassRefPtr<MessageChannel> create(ScriptExecutionContext& context) { return adoptRef(new MessageChannel(context)); } + static Ref<MessageChannel> create(ScriptExecutionContext& context) { return adoptRef(*new MessageChannel(context)); } ~MessageChannel(); MessagePort* port1() const { return m_port1.get(); } @@ -52,5 +50,3 @@ namespace WebCore { }; } // namespace WebCore - -#endif // MessageChannel_h |