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

Unified Diff: third_party/WebKit/Source/platform/mhtml/ArchiveResource.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/platform/mhtml/ArchiveResource.cpp
diff --git a/third_party/WebKit/Source/platform/mhtml/ArchiveResource.cpp b/third_party/WebKit/Source/platform/mhtml/ArchiveResource.cpp
index 02cf8cdab1a96dd32e3382609a1bda32a91d5d56..ad87b4e2fd767de3f5037545d55615c32a9b1d43 100644
--- a/third_party/WebKit/Source/platform/mhtml/ArchiveResource.cpp
+++ b/third_party/WebKit/Source/platform/mhtml/ArchiveResource.cpp
@@ -37,7 +37,7 @@ ArchiveResource::ArchiveResource(PassRefPtr<SharedBuffer> data,
const AtomicString& textEncoding)
: m_url(url),
m_contentID(contentID),
- m_data(data),
+ m_data(std::move(data)),
m_mimeType(mimeType),
m_textEncoding(textEncoding) {
ASSERT(m_data);

Powered by Google App Engine
This is Rietveld 408576698