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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontFamily.h

Issue 2628773002: Replaced RefPtr::release with std::move in Source/platform. (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/platform/fonts/FontFamily.h
diff --git a/third_party/WebKit/Source/platform/fonts/FontFamily.h b/third_party/WebKit/Source/platform/fonts/FontFamily.h
index 6be568fb1f70206f26bf3292933231fe894b9db1..99ccc78bb9915ce90415367329a45660bbd0bb5f 100644
--- a/third_party/WebKit/Source/platform/fonts/FontFamily.h
+++ b/third_party/WebKit/Source/platform/fonts/FontFamily.h
@@ -76,7 +76,7 @@ inline bool operator!=(const FontFamily& a, const FontFamily& b) {
}
inline FontFamily::~FontFamily() {
- RefPtr<SharedFontFamily> reaper = m_next.release();
+ RefPtr<SharedFontFamily> reaper = std::move(m_next);
while (reaper && reaper->hasOneRef()) {
// implicitly protects reaper->next, then derefs reaper
reaper = reaper->releaseNext();
@@ -92,7 +92,7 @@ inline void FontFamily::appendFamily(PassRefPtr<SharedFontFamily> family) {
}
inline PassRefPtr<SharedFontFamily> FontFamily::releaseNext() {
- return m_next.release();
+ return std::move(m_next);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698