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

Unified Diff: third_party/WebKit/Source/wtf/text/WTFString.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/WTFString.h
diff --git a/third_party/WebKit/Source/wtf/text/WTFString.h b/third_party/WebKit/Source/wtf/text/WTFString.h
index dd517e4a369d0d03aa5a48315c5d83326481c403..a071bf21580a33f5ae24f17a44e735c8ae194af1 100644
--- a/third_party/WebKit/Source/wtf/text/WTFString.h
+++ b/third_party/WebKit/Source/wtf/text/WTFString.h
@@ -97,7 +97,7 @@ class WTF_EXPORT String {
// Construct a string referencing an existing StringImpl.
String(StringImpl* impl) : m_impl(impl) {}
- String(PassRefPtr<StringImpl> impl) : m_impl(impl) {}
+ String(PassRefPtr<StringImpl> impl) : m_impl(std::move(impl)) {}
void swap(String& o) { m_impl.swap(o.m_impl); }
« no previous file with comments | « third_party/WebKit/Source/wtf/text/CString.h ('k') | third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698