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

Unified Diff: third_party/WebKit/Source/platform/audio/MultiChannelResampler.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/audio/MultiChannelResampler.cpp
diff --git a/third_party/WebKit/Source/platform/audio/MultiChannelResampler.cpp b/third_party/WebKit/Source/platform/audio/MultiChannelResampler.cpp
index 368c4ab9d8289571f94a10f2cc3ca969e049e6e4..87197dda3d2e9fd8f48f51a25e10bb1fde52b546 100644
--- a/third_party/WebKit/Source/platform/audio/MultiChannelResampler.cpp
+++ b/third_party/WebKit/Source/platform/audio/MultiChannelResampler.cpp
@@ -100,7 +100,7 @@ MultiChannelResampler::MultiChannelResampler(double scaleFactor,
// Create each channel's resampler.
for (unsigned channelIndex = 0; channelIndex < numberOfChannels;
++channelIndex)
- m_kernels.append(wrapUnique(new SincResampler(scaleFactor)));
+ m_kernels.append(makeUnique<SincResampler>(scaleFactor));
}
void MultiChannelResampler::process(AudioSourceProvider* provider,
« no previous file with comments | « third_party/WebKit/Source/platform/audio/HRTFKernel.cpp ('k') | third_party/WebKit/Source/platform/audio/Panner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698