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

Unified Diff: Source/platform/audio/AudioResamplerKernel.cpp

Issue 511333002: Removing "using" declarations that import names in the C++ Standard library.(Source/platform/audio) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/platform/audio/AudioResampler.cpp ('k') | Source/platform/audio/Distance.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/audio/AudioResamplerKernel.cpp
diff --git a/Source/platform/audio/AudioResamplerKernel.cpp b/Source/platform/audio/AudioResamplerKernel.cpp
index 6f920c032a4ab910981fdb59361459a8085e8638..45d9b2671aa403716ea6ec273613786b7aa2976d 100644
--- a/Source/platform/audio/AudioResamplerKernel.cpp
+++ b/Source/platform/audio/AudioResamplerKernel.cpp
@@ -31,8 +31,6 @@
#include <algorithm>
#include "platform/audio/AudioResampler.h"
-using namespace std;
-
namespace blink {
const size_t AudioResamplerKernel::MaxFramesToProcess = 128;
@@ -80,8 +78,8 @@ void AudioResamplerKernel::process(float* destination, size_t framesToProcess)
float* source = m_sourceBuffer.data();
double rate = this->rate();
- rate = max(0.0, rate);
- rate = min(AudioResampler::MaxRate, rate);
+ rate = std::max(0.0, rate);
+ rate = std::min(AudioResampler::MaxRate, rate);
// Start out with the previous saved values (if any).
if (m_fillIndex > 0) {
« no previous file with comments | « Source/platform/audio/AudioResampler.cpp ('k') | Source/platform/audio/Distance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698