diff options
Diffstat (limited to 'Source/WebCore/html/canvas/WebGLUniformLocation.h')
-rw-r--r-- | Source/WebCore/html/canvas/WebGLUniformLocation.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/Source/WebCore/html/canvas/WebGLUniformLocation.h b/Source/WebCore/html/canvas/WebGLUniformLocation.h index a268fa2fa..5130be0dd 100644 --- a/Source/WebCore/html/canvas/WebGLUniformLocation.h +++ b/Source/WebCore/html/canvas/WebGLUniformLocation.h @@ -11,10 +11,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,21 +24,18 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef WebGLUniformLocation_h -#define WebGLUniformLocation_h +#pragma once #include "WebGLProgram.h" - -#include <wtf/PassRefPtr.h> #include <wtf/RefCounted.h> namespace WebCore { -class WebGLUniformLocation : public RefCounted<WebGLUniformLocation> { +class WebGLUniformLocation final : public RefCounted<WebGLUniformLocation> { public: - virtual ~WebGLUniformLocation() { } + ~WebGLUniformLocation() { } - static PassRefPtr<WebGLUniformLocation> create(WebGLProgram*, GC3Dint location, GC3Denum type); + static Ref<WebGLUniformLocation> create(WebGLProgram*, GC3Dint location, GC3Denum type); WebGLProgram* program() const; @@ -57,5 +54,3 @@ private: }; } // namespace WebCore - -#endif // WebGLUniformLocation_h |