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/Modules/webdatabase/SQLException.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'Source/WebCore/Modules/webdatabase/SQLException.h') diff --git a/Source/WebCore/Modules/webdatabase/SQLException.h b/Source/WebCore/Modules/webdatabase/SQLException.h index 7ea09982a..281a85e2b 100644 --- a/Source/WebCore/Modules/webdatabase/SQLException.h +++ b/Source/WebCore/Modules/webdatabase/SQLException.h @@ -28,10 +28,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLException_h -#define SQLException_h - -#if ENABLE(SQL_DATABASE) +#pragma once #include "ExceptionBase.h" @@ -39,9 +36,9 @@ namespace WebCore { class SQLException : public ExceptionBase { public: - static PassRefPtr create(const ExceptionCodeDescription& description) + static Ref create(const ExceptionCodeDescription& description) { - return adoptRef(new SQLException(description)); + return adoptRef(*new SQLException(description)); } static const int SQLExceptionOffset = 1000; @@ -68,7 +65,3 @@ private: }; } // namespace WebCore - -#endif // ENABLE(SQL_DATABASE) - -#endif // SQLException_h -- cgit v1.2.1