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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutText.cpp

Issue 2622043003: Replaced RefPtr::release with std::move in Source/core. (Closed)
Patch Set: Created 3 years, 11 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/LayoutText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp
index 3024a8263bc181eaa8baa3a7382e280c715f3c49..820581416b538a34ab80598b891a590a595dd3a0 100644
--- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
@@ -1558,7 +1558,7 @@ void LayoutText::setTextWithOffset(PassRefPtr<StringImpl> text,
void LayoutText::transformText() {
if (RefPtr<StringImpl> textToTransform = originalText())
- setText(textToTransform.release(), true);
+ setText(std::move(textToTransform), true);
}
static inline bool isInlineFlowOrEmptyText(const LayoutObject* o) {

Powered by Google App Engine
This is Rietveld 408576698