diff options
Diffstat (limited to 'Source/WebCore/Modules/webdatabase/SQLException.h')
-rw-r--r-- | Source/WebCore/Modules/webdatabase/SQLException.h | 13 |
1 files changed, 3 insertions, 10 deletions
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<SQLException> create(const ExceptionCodeDescription& description) + static Ref<SQLException> 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 |