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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp

Issue 1981823002: Remove OwnPtr::release() calls in platform/ (part 1). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 786924d0ea952c4e3994a8ed2f7943c248528f85..42bf7adb91745d7d71e9b6164dd6cde69fb06d12 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp
@@ -337,21 +337,21 @@ void ShapeResult::insertRun(PassOwnPtr<ShapeResult::RunInfo> runToInsert,
if (HB_DIRECTION_IS_FORWARD(run->m_direction)) {
for (size_t pos = 0; pos < m_runs.size(); ++pos) {
if (m_runs.at(pos)->m_startIndex > run->m_startIndex) {
- m_runs.insert(pos, run.release());
+ m_runs.insert(pos, std::move(run));
break;
}
}
} else {
for (size_t pos = 0; pos < m_runs.size(); ++pos) {
if (m_runs.at(pos)->m_startIndex < run->m_startIndex) {
- m_runs.insert(pos, run.release());
+ m_runs.insert(pos, std::move(run));
break;
}
}
}
// If we didn't find an existing slot to place it, append.
if (run)
- m_runs.append(run.release());
+ m_runs.append(std::move(run));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698