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

Unified Diff: third_party/WebKit/Source/platform/PODArena.h

Issue 2306293002: Replaced PassRefPtr copies with moves in Source/platform. (Closed)
Patch Set: Created 4 years, 3 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/platform/PODArena.h
diff --git a/third_party/WebKit/Source/platform/PODArena.h b/third_party/WebKit/Source/platform/PODArena.h
index d8ebf83701114a2e7ccfb648e3463338414d9b30..b5600de13c1190a41a1c2b798dd8577851195cd2 100644
--- a/third_party/WebKit/Source/platform/PODArena.h
+++ b/third_party/WebKit/Source/platform/PODArena.h
@@ -81,7 +81,7 @@ public:
// Creates a new PODArena configured with the given Allocator.
static PassRefPtr<PODArena> create(PassRefPtr<Allocator> allocator)
{
- return adoptRef(new PODArena(allocator));
+ return adoptRef(new PODArena(std::move(allocator)));
}
// Allocates an object from the arena.
« no previous file with comments | « third_party/WebKit/Source/platform/Length.cpp ('k') | third_party/WebKit/Source/platform/PODFreeListArena.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698