| Index: Source/modules/indexeddb/IDBFactory.cpp
|
| diff --git a/Source/modules/indexeddb/IDBFactory.cpp b/Source/modules/indexeddb/IDBFactory.cpp
|
| index 21fabed481774da72fd3a8f56bdee95b7a69957a..385a831eb022903621b1cfe163992786934f9b02 100644
|
| --- a/Source/modules/indexeddb/IDBFactory.cpp
|
| +++ b/Source/modules/indexeddb/IDBFactory.cpp
|
| @@ -77,10 +77,10 @@ IDBRequest* IDBFactory::getDatabaseNames(ScriptState* scriptState, ExceptionStat
|
| return nullptr;
|
| if (!scriptState->executionContext()->securityOrigin()->canAccessDatabase()) {
|
| exceptionState.throwSecurityError("access to the Indexed Database API is denied in this context.");
|
| - return 0;
|
| + return nullptr;
|
| }
|
|
|
| - IDBRequest* request = IDBRequest::create(scriptState, IDBAny::createNull(), 0);
|
| + IDBRequest* request = IDBRequest::create(scriptState, IDBAny::createNull(), nullptr);
|
|
|
| if (!m_permissionClient->allowIndexedDB(scriptState->executionContext(), "Database Listing")) {
|
| request->onError(DOMError::create(UnknownError, permissionDeniedErrorMessage));
|
| @@ -96,7 +96,7 @@ IDBOpenDBRequest* IDBFactory::open(ScriptState* scriptState, const String& name,
|
| IDB_TRACE("IDBFactory::open");
|
| if (!version) {
|
| exceptionState.throwTypeError("The version provided must not be 0.");
|
| - return 0;
|
| + return nullptr;
|
| }
|
| return openInternal(scriptState, name, version, exceptionState);
|
| }
|
| @@ -109,7 +109,7 @@ IDBOpenDBRequest* IDBFactory::openInternal(ScriptState* scriptState, const Strin
|
| return nullptr;
|
| if (!scriptState->executionContext()->securityOrigin()->canAccessDatabase()) {
|
| exceptionState.throwSecurityError("access to the Indexed Database API is denied in this context.");
|
| - return 0;
|
| + return nullptr;
|
| }
|
|
|
| IDBDatabaseCallbacks* databaseCallbacks = IDBDatabaseCallbacks::create();
|
| @@ -139,7 +139,7 @@ IDBOpenDBRequest* IDBFactory::deleteDatabase(ScriptState* scriptState, const Str
|
| return nullptr;
|
| if (!scriptState->executionContext()->securityOrigin()->canAccessDatabase()) {
|
| exceptionState.throwSecurityError("access to the Indexed Database API is denied in this context.");
|
| - return 0;
|
| + return nullptr;
|
| }
|
|
|
| IDBOpenDBRequest* request = IDBOpenDBRequest::create(scriptState, nullptr, 0, IDBDatabaseMetadata::DefaultIntVersion);
|
|
|