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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.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/shaping/ShapeResult.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp
index 103445d0b6cb1138687a3fc9d22139fbdbff35f5..9ab70802a5f0b4e06cd3caa2c257a4165e1e9157 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp
@@ -366,7 +366,7 @@ PassRefPtr<ShapeResult> ShapeResult::ApplySpacingToCopy(
const TextRun& run) const {
RefPtr<ShapeResult> result = ShapeResult::Create(*this);
result->ApplySpacing(spacing, run, run.Rtl());
- return result.Release();
+ return result;
}
static inline float HarfBuzzPositionToFloat(hb_position_t value) {
@@ -511,7 +511,7 @@ PassRefPtr<ShapeResult> ShapeResult::CreateForTabulationCharacters(
result->has_vertical_offsets_ =
font_data->PlatformData().IsVerticalAnyUpright();
result->runs_.push_back(std::move(run));
- return result.Release();
+ return result;
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698