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

Unified Diff: Source/platform/audio/HRTFDatabase.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/EqualPowerPanner.cpp ('k') | Source/platform/audio/HRTFElevation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/audio/HRTFDatabase.cpp
diff --git a/Source/platform/audio/HRTFDatabase.cpp b/Source/platform/audio/HRTFDatabase.cpp
index fe9e82dda50a770ec0c1c92b1b493f1990901a66..1815742f45ba3e9944be5c618f51e12a192e0469 100644
--- a/Source/platform/audio/HRTFDatabase.cpp
+++ b/Source/platform/audio/HRTFDatabase.cpp
@@ -32,9 +32,6 @@
#include "platform/audio/HRTFDatabase.h"
-
-using namespace std;
-
namespace blink {
const int HRTFDatabase::MinElevation = -45;
@@ -111,8 +108,8 @@ void HRTFDatabase::getKernelsFromAzimuthElevation(double azimuthBlend, unsigned
unsigned HRTFDatabase::indexFromElevationAngle(double elevationAngle)
{
// Clamp to allowed range.
- elevationAngle = max(static_cast<double>(MinElevation), elevationAngle);
- elevationAngle = min(static_cast<double>(MaxElevation), elevationAngle);
+ elevationAngle = std::max(static_cast<double>(MinElevation), elevationAngle);
+ elevationAngle = std::min(static_cast<double>(MaxElevation), elevationAngle);
unsigned elevationIndex = static_cast<int>(InterpolationFactor * (elevationAngle - MinElevation) / RawElevationAngleSpacing);
return elevationIndex;
« no previous file with comments | « Source/platform/audio/EqualPowerPanner.cpp ('k') | Source/platform/audio/HRTFElevation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698