summaryrefslogtreecommitdiff
path: root/Source/WebCore/Modules/webdatabase/SQLException.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/Modules/webdatabase/SQLException.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/Modules/webdatabase/SQLException.h')
-rw-r--r--Source/WebCore/Modules/webdatabase/SQLException.h13
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