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

Unified Diff: third_party/WebKit/Source/core/layout/api/LayoutTextItem.h

Issue 2282413002: Replaced PassRefPtr copies with moves in Source/core. (Closed)
Patch Set: rebased Created 4 years, 3 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/layout/api/LayoutTextItem.h
diff --git a/third_party/WebKit/Source/core/layout/api/LayoutTextItem.h b/third_party/WebKit/Source/core/layout/api/LayoutTextItem.h
index 3eaedd85f980eeb291582ed6b23ce928e17758be..0b550fa0415a22e12dd4110a5e203cb008bc5e44 100644
--- a/third_party/WebKit/Source/core/layout/api/LayoutTextItem.h
+++ b/third_party/WebKit/Source/core/layout/api/LayoutTextItem.h
@@ -32,12 +32,12 @@ public:
void setStyle(PassRefPtr<ComputedStyle> style)
{
- toText()->setStyle(style);
+ toText()->setStyle(std::move(style));
}
void setText(PassRefPtr<StringImpl> text, bool force = false)
{
- toText()->setText(text, force);
+ toText()->setText(std::move(text), force);
}
bool isTextFragment() const

Powered by Google App Engine
This is Rietveld 408576698