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

Unified Diff: third_party/WebKit/Source/wtf/Functional.h

Issue 1916703002: Prepare for move-only PassOwnPtr in the remaining directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@core1
Patch Set: Merge with trunk. Created 4 years, 8 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/wtf/Functional.h
diff --git a/third_party/WebKit/Source/wtf/Functional.h b/third_party/WebKit/Source/wtf/Functional.h
index c19da9241f3bc2e1106c4728c21d022276d3eb30..8aa0a938b4c89222d325713df99b65a03465ee2b 100644
--- a/third_party/WebKit/Source/wtf/Functional.h
+++ b/third_party/WebKit/Source/wtf/Functional.h
@@ -159,7 +159,7 @@ public:
}
template <typename... IncomingParameters>
- R operator()(PassOwnPtr<C> c, IncomingParameters&&... parameters)
+ R operator()(const PassOwnPtr<C>& c, IncomingParameters&&... parameters)
{
return (c.get()->*m_function)(std::forward<IncomingParameters>(parameters)...);
}
« no previous file with comments | « third_party/WebKit/Source/web/WorkerContentSettingsClient.cpp ('k') | third_party/WebKit/Source/wtf/HashTraits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698