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

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

Issue 2494333002: Replace wrapUnique(new T(args)) by makeUnique<T>(args) in Blink (Closed)
Patch Set: Drop redundant WTF:: Created 4 years, 1 month 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/RunSegmenter.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.cpp b/third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.cpp
index 034a7006182007d57e83b68959047169bc8c9b94..35e8af38c89dc9612fd0223035180c5c0a82bcde 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.cpp
+++ b/third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.cpp
@@ -21,14 +21,13 @@ RunSegmenter::RunSegmenter(const UChar* buffer,
m_candidateRange({0, 0, USCRIPT_INVALID_CODE,
OrientationIterator::OrientationKeep,
FontFallbackPriority::Text}),
- m_scriptRunIterator(
- wrapUnique(new ScriptRunIterator(buffer, bufferSize))),
+ m_scriptRunIterator(makeUnique<ScriptRunIterator>(buffer, bufferSize)),
m_orientationIterator(
runOrientation == FontOrientation::VerticalMixed
? wrapUnique(
new OrientationIterator(buffer, bufferSize, runOrientation))
: nullptr),
- m_symbolsIterator(wrapUnique(new SymbolsIterator(buffer, bufferSize))),
+ m_symbolsIterator(makeUnique<SymbolsIterator>(buffer, bufferSize)),
m_lastSplit(0),
m_scriptRunIteratorPosition(0),
m_orientationIteratorPosition(

Powered by Google App Engine
This is Rietveld 408576698