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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolverState.h

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/css/resolver/StyleResolverState.h
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolverState.h b/third_party/WebKit/Source/core/css/resolver/StyleResolverState.h
index 699f06b9aa2357d0071436fd0f9514b518599cbb..83f5cf6be160ab2ad3a6b48d97f7c37dcd2edc67 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolverState.h
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolverState.h
@@ -80,7 +80,7 @@ class CORE_EXPORT StyleResolverState {
void setStyle(PassRefPtr<ComputedStyle>);
const ComputedStyle* style() const { return m_style.get(); }
ComputedStyle* style() { return m_style.get(); }
- PassRefPtr<ComputedStyle> takeStyle() { return m_style.release(); }
+ PassRefPtr<ComputedStyle> takeStyle() { return std::move(m_style); }
ComputedStyle& mutableStyleRef() const { return *m_style; }
const ComputedStyle& styleRef() const { return mutableStyleRef(); }

Powered by Google App Engine
This is Rietveld 408576698