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

Unified Diff: third_party/WebKit/Source/core/style/ShapeValue.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/core/style/ShapeValue.h
diff --git a/third_party/WebKit/Source/core/style/ShapeValue.h b/third_party/WebKit/Source/core/style/ShapeValue.h
index 94ada72c7f74190044683385928614a7917decfd..26c0649b5f01e9478a7510140b599cd86a3bd7f2 100644
--- a/third_party/WebKit/Source/core/style/ShapeValue.h
+++ b/third_party/WebKit/Source/core/style/ShapeValue.h
@@ -85,7 +85,7 @@ class ShapeValue final : public GarbageCollectedFinalized<ShapeValue> {
private:
ShapeValue(PassRefPtr<BasicShape> shape, CSSBoxType cssBox)
- : m_type(Shape), m_shape(shape), m_cssBox(cssBox) {}
+ : m_type(Shape), m_shape(std::move(shape)), m_cssBox(cssBox) {}
ShapeValue(ShapeValueType type) : m_type(type), m_cssBox(BoxMissing) {}
ShapeValue(StyleImage* image)
: m_type(Image), m_image(image), m_cssBox(ContentBox) {}
« no previous file with comments | « third_party/WebKit/Source/core/style/ClipPathOperation.h ('k') | third_party/WebKit/Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698