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

Unified Diff: Source/platform/audio/Distance.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/AudioResamplerKernel.cpp ('k') | Source/platform/audio/DynamicsCompressorKernel.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/audio/Distance.cpp
diff --git a/Source/platform/audio/Distance.cpp b/Source/platform/audio/Distance.cpp
index 8e2c4dcf532d965579e585091c34a78868e54d8c..919371d4480665180599f6d5a4b99cccd3dfbdf7 100644
--- a/Source/platform/audio/Distance.cpp
+++ b/Source/platform/audio/Distance.cpp
@@ -36,8 +36,6 @@
#include <math.h>
#include <algorithm>
-using namespace std;
-
namespace blink {
DistanceEffect::DistanceEffect()
@@ -52,11 +50,11 @@ DistanceEffect::DistanceEffect()
double DistanceEffect::gain(double distance)
{
// don't go beyond maximum distance
- distance = min(distance, m_maxDistance);
+ distance = std::min(distance, m_maxDistance);
// if clamped, don't get closer than reference distance
if (m_isClamped)
- distance = max(distance, m_refDistance);
+ distance = std::max(distance, m_refDistance);
switch (m_model) {
case ModelLinear:
« no previous file with comments | « Source/platform/audio/AudioResamplerKernel.cpp ('k') | Source/platform/audio/DynamicsCompressorKernel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698