diff options
Diffstat (limited to 'Source/WebCore/Modules/indexeddb/IDBDatabaseException.h')
-rw-r--r-- | Source/WebCore/Modules/indexeddb/IDBDatabaseException.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/WebCore/Modules/indexeddb/IDBDatabaseException.h b/Source/WebCore/Modules/indexeddb/IDBDatabaseException.h index 15e58af28..9e0ce98b0 100644 --- a/Source/WebCore/Modules/indexeddb/IDBDatabaseException.h +++ b/Source/WebCore/Modules/indexeddb/IDBDatabaseException.h @@ -23,8 +23,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef IDBDatabaseException_h -#define IDBDatabaseException_h +#pragma once #if ENABLE(INDEXED_DATABASE) @@ -34,9 +33,9 @@ namespace WebCore { class IDBDatabaseException : public ExceptionBase { public: - static PassRefPtr<IDBDatabaseException> create(const ExceptionCodeDescription& description) + static Ref<IDBDatabaseException> create(const ExceptionCodeDescription& description) { - return adoptRef(new IDBDatabaseException(description)); + return adoptRef(*new IDBDatabaseException(description)); } static const int IDBDatabaseExceptionOffset = 1200; @@ -85,6 +84,4 @@ private: } // namespace WebCore -#endif - -#endif // IDBDatabaseException_h +#endif // ENABLE(INDEXED_DATABASE) |