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

Unified Diff: third_party/WebKit/Source/modules/webaudio/RealtimeAnalyser.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/modules/webaudio/RealtimeAnalyser.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/RealtimeAnalyser.cpp b/third_party/WebKit/Source/modules/webaudio/RealtimeAnalyser.cpp
index 010f90fc2311f15ec3613e5e727f141d29d039f1..ab4f0e2452ba2ea225f05e26f7e4dffd637d932c 100644
--- a/third_party/WebKit/Source/modules/webaudio/RealtimeAnalyser.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/RealtimeAnalyser.cpp
@@ -57,7 +57,7 @@ RealtimeAnalyser::RealtimeAnalyser()
m_minDecibels(DefaultMinDecibels),
m_maxDecibels(DefaultMaxDecibels),
m_lastAnalysisTime(-1) {
- m_analysisFrame = wrapUnique(new FFTFrame(DefaultFFTSize));
+ m_analysisFrame = makeUnique<FFTFrame>(DefaultFFTSize);
}
bool RealtimeAnalyser::setFftSize(size_t size) {
@@ -71,7 +71,7 @@ bool RealtimeAnalyser::setFftSize(size_t size) {
return false;
if (m_fftSize != size) {
- m_analysisFrame = wrapUnique(new FFTFrame(size));
+ m_analysisFrame = makeUnique<FFTFrame>(size);
// m_magnitudeBuffer has size = fftSize / 2 because it contains floats
// reduced from complex values in m_analysisFrame.
m_magnitudeBuffer.allocate(size / 2);

Powered by Google App Engine
This is Rietveld 408576698