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

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

Issue 2432883002: Replaced PassRefPtr copies with moves in unit tests. (Closed)
Patch Set: Created 4 years, 2 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/PODFreeListArena.h
diff --git a/third_party/WebKit/Source/platform/PODFreeListArena.h b/third_party/WebKit/Source/platform/PODFreeListArena.h
index 1c0d5e378d51aa604190544f0e12c056628c3c12..e4446c3c8193bc970d91b1b83f3a1adef7056392 100644
--- a/third_party/WebKit/Source/platform/PODFreeListArena.h
+++ b/third_party/WebKit/Source/platform/PODFreeListArena.h
@@ -42,7 +42,7 @@ class PODFreeListArena : public RefCounted<PODFreeListArena<T>> {
// Creates a new PODFreeListArena configured with the given Allocator.
static PassRefPtr<PODFreeListArena> create(
PassRefPtr<PODArena::Allocator> allocator) {
- return adoptRef(new PODFreeListArena(allocator));
+ return adoptRef(new PODFreeListArena(std::move(allocator)));
}
// Allocates an object from the arena.

Powered by Google App Engine
This is Rietveld 408576698