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

Unified Diff: third_party/WebKit/Source/core/css/LocalFontFaceSource.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/core/css/LocalFontFaceSource.cpp
diff --git a/third_party/WebKit/Source/core/css/LocalFontFaceSource.cpp b/third_party/WebKit/Source/core/css/LocalFontFaceSource.cpp
index 4ca94a7aae753bde757118065841718b6e42e0af..3dd5beb5ee62bef0a65567b3d6c13d5896721184 100644
--- a/third_party/WebKit/Source/core/css/LocalFontFaceSource.cpp
+++ b/third_party/WebKit/Source/core/css/LocalFontFaceSource.cpp
@@ -22,7 +22,7 @@ PassRefPtr<SimpleFontData> LocalFontFaceSource::CreateFontData(
RefPtr<SimpleFontData> font_data = FontCache::GetFontCache()->GetFontData(
font_description, font_name_, AlternateFontName::kLocalUniqueFace);
histograms_.Record(font_data.Get());
- return font_data.Release();
+ return font_data;
}
void LocalFontFaceSource::LocalFontHistograms::Record(bool load_success) {

Powered by Google App Engine
This is Rietveld 408576698