Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1798)

Unified Diff: Source/modules/indexeddb/IDBFactory.cpp

Issue 1166553004: IndexedDB: Replace 0 with nullptr where appropriate (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: MOAR Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/indexeddb/IDBDatabase.cpp ('k') | Source/modules/indexeddb/IDBIndex.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/modules/indexeddb/IDBDatabase.cpp ('k') | Source/modules/indexeddb/IDBIndex.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698