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

Unified Diff: third_party/WebKit/Source/wtf/text/CString.h

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/wtf/text/CString.h
diff --git a/third_party/WebKit/Source/wtf/text/CString.h b/third_party/WebKit/Source/wtf/text/CString.h
index c8db1ad760e678b1e9126dbc5c64b27a629da967..aeebe0f66e3065e018071bb021782e9780f3f021 100644
--- a/third_party/WebKit/Source/wtf/text/CString.h
+++ b/third_party/WebKit/Source/wtf/text/CString.h
@@ -76,7 +76,7 @@ class WTF_EXPORT CString {
// Construct a string referencing an existing buffer.
CString(CStringImpl* buffer) : m_buffer(buffer) {}
- CString(PassRefPtr<CStringImpl> buffer) : m_buffer(buffer) {}
+ CString(PassRefPtr<CStringImpl> buffer) : m_buffer(std::move(buffer)) {}
static CString createUninitialized(size_t length, char*& data) {
return CStringImpl::createUninitialized(length, data);
« no previous file with comments | « third_party/WebKit/Source/web/WebFileChooserCompletionImpl.cpp ('k') | third_party/WebKit/Source/wtf/text/WTFString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698