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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseAgent.cpp

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. Created 3 years, 9 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: third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseAgent.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseAgent.cpp b/third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseAgent.cpp
index 59caca34dd71a00600ca05141194980ac05a91ba..aec58dc4ee9c0b0acc7a2e1aa76b42ab9f402056 100644
--- a/third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseAgent.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseAgent.cpp
@@ -135,7 +135,7 @@ class StatementCallback final : public SQLStatementCallback {
private:
StatementCallback(PassRefPtr<ExecuteSQLCallbackWrapper> requestCallback)
- : m_requestCallback(requestCallback) {}
+ : m_requestCallback(std::move(requestCallback)) {}
RefPtr<ExecuteSQLCallbackWrapper> m_requestCallback;
};
@@ -157,7 +157,7 @@ class StatementErrorCallback final : public SQLStatementErrorCallback {
private:
StatementErrorCallback(PassRefPtr<ExecuteSQLCallbackWrapper> requestCallback)
- : m_requestCallback(requestCallback) {}
+ : m_requestCallback(std::move(requestCallback)) {}
RefPtr<ExecuteSQLCallbackWrapper> m_requestCallback;
};
@@ -187,7 +187,8 @@ class TransactionCallback final : public SQLTransactionCallback {
private:
TransactionCallback(const String& sqlStatement,
PassRefPtr<ExecuteSQLCallbackWrapper> requestCallback)
- : m_sqlStatement(sqlStatement), m_requestCallback(requestCallback) {}
+ : m_sqlStatement(sqlStatement),
+ m_requestCallback(std::move(requestCallback)) {}
String m_sqlStatement;
RefPtr<ExecuteSQLCallbackWrapper> m_requestCallback;
};
@@ -211,7 +212,7 @@ class TransactionErrorCallback final : public SQLTransactionErrorCallback {
private:
TransactionErrorCallback(
PassRefPtr<ExecuteSQLCallbackWrapper> requestCallback)
- : m_requestCallback(requestCallback) {}
+ : m_requestCallback(std::move(requestCallback)) {}
RefPtr<ExecuteSQLCallbackWrapper> m_requestCallback;
};

Powered by Google App Engine
This is Rietveld 408576698