From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/html/canvas/WebGLActiveInfo.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'Source/WebCore/html/canvas/WebGLActiveInfo.h') diff --git a/Source/WebCore/html/canvas/WebGLActiveInfo.h b/Source/WebCore/html/canvas/WebGLActiveInfo.h index 0938a2366..843cb73a2 100644 --- a/Source/WebCore/html/canvas/WebGLActiveInfo.h +++ b/Source/WebCore/html/canvas/WebGLActiveInfo.h @@ -23,11 +23,9 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef WebGLActiveInfo_h -#define WebGLActiveInfo_h +#pragma once #include "GraphicsContext3D.h" -#include #include #include @@ -35,9 +33,9 @@ namespace WebCore { class WebGLActiveInfo : public RefCounted { public: - static PassRefPtr create(const String& name, GC3Denum type, GC3Dint size) + static Ref create(const String& name, GC3Denum type, GC3Dint size) { - return adoptRef(new WebGLActiveInfo(name, type, size)); + return adoptRef(*new WebGLActiveInfo(name, type, size)); } String name() const { return m_name; } GC3Denum type() const { return m_type; } @@ -58,6 +56,4 @@ private: GC3Dint m_size; }; -} - -#endif // WebGLActiveInfo_h +} // namespace WebCore -- cgit v1.2.1