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/TextMetrics.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Source/WebCore/html/TextMetrics.h') diff --git a/Source/WebCore/html/TextMetrics.h b/Source/WebCore/html/TextMetrics.h index b272ef664..a7ed7d8e1 100644 --- a/Source/WebCore/html/TextMetrics.h +++ b/Source/WebCore/html/TextMetrics.h @@ -23,17 +23,16 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef TextMetrics_h -#define TextMetrics_h +#pragma once -#include +#include #include namespace WebCore { class TextMetrics : public RefCounted { public: - static PassRefPtr create() { return adoptRef(new TextMetrics); } + static Ref create() { return adoptRef(*new TextMetrics); } float width() const { return m_width; } void setWidth(float w) { m_width = w; } @@ -47,5 +46,3 @@ private: }; } // namespace WebCore - -#endif // TextMetrics_h -- cgit v1.2.1