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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontFallbackList.cpp

Issue 2957513002: Removed calls to RefPtr::Release in return statements with auto move. (Closed)
Patch Set: rebased Created 3 years, 6 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/FontFallbackList.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/FontFallbackList.cpp b/third_party/WebKit/Source/platform/fonts/FontFallbackList.cpp
index 2aea90a7da4a71113ca0e41538d771c107c714bf..722232c6d627f552ad8cfd152d21967cbd3b24f8 100644
--- a/third_party/WebKit/Source/platform/fonts/FontFallbackList.cpp
+++ b/third_party/WebKit/Source/platform/fonts/FontFallbackList.cpp
@@ -167,7 +167,7 @@ PassRefPtr<FontData> FontFallbackList::GetFontData(
result = FontCache::GetFontCache()->GetFontData(font_description,
curr_family->Family());
if (result)
- return result.Release();
+ return result;
}
}
family_index = kCAllFamiliesScanned;
@@ -176,7 +176,7 @@ PassRefPtr<FontData> FontFallbackList::GetFontData(
// Try the user's preferred standard font.
if (RefPtr<FontData> data = font_selector_->GetFontData(
font_description, FontFamilyNames::webkit_standard))
- return data.Release();
+ return data;
}
// Still no result. Hand back our last resort fallback font.

Powered by Google App Engine
This is Rietveld 408576698