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

Unified Diff: Source/modules/webdatabase/SQLTransactionBackendSync.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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
Index: Source/modules/webdatabase/SQLTransactionBackendSync.cpp
diff --git a/Source/modules/webdatabase/SQLTransactionBackendSync.cpp b/Source/modules/webdatabase/SQLTransactionBackendSync.cpp
index 6ce94a90c3499eb6904994fb25c39cb4d2eec80e..b1e298be8ddb8194391ae1e64617d2c66d9ec234 100644
--- a/Source/modules/webdatabase/SQLTransactionBackendSync.cpp
+++ b/Source/modules/webdatabase/SQLTransactionBackendSync.cpp
@@ -78,17 +78,17 @@ PassRefPtr<SQLResultSet> SQLTransactionBackendSync::executeSQL(const String& sql
if (!m_database->opened()) {
m_database->setLastErrorMessage("cannot executeSQL because the database is not open");
exceptionState.throwDOMException(UnknownError, SQLError::unknownErrorMessage);
- return 0;
+ return nullptr;
}
if (m_hasVersionMismatch) {
m_database->setLastErrorMessage("cannot executeSQL because there is a version mismatch");
exceptionState.throwDOMException(VersionError, SQLError::versionErrorMessage);
- return 0;
+ return nullptr;
}
if (sqlStatement.isEmpty())
- return 0;
+ return nullptr;
int permissions = DatabaseAuthorizer::ReadWriteMask;
if (!m_database->databaseContext()->allowDatabaseAccess())
@@ -106,7 +106,7 @@ PassRefPtr<SQLResultSet> SQLTransactionBackendSync::executeSQL(const String& sql
resultSet = statement.execute(m_database.get(), exceptionState);
if (!resultSet) {
if (m_sqliteTransaction->wasRolledBackBySqlite())
- return 0;
+ return nullptr;
if (exceptionState.code() == QuotaExceededError) {
if (m_transactionClient->didExceedQuota(database())) {
@@ -114,7 +114,7 @@ PassRefPtr<SQLResultSet> SQLTransactionBackendSync::executeSQL(const String& sql
retryStatement = true;
} else {
m_database->setLastErrorMessage("there was not enough remaining storage space");
- return 0;
+ return nullptr;
}
}
}
« no previous file with comments | « Source/modules/webdatabase/SQLTransactionBackend.cpp ('k') | Source/modules/webdatabase/SQLTransactionCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698