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

Unified Diff: Source/modules/webaudio/AudioNodeInput.cpp

Issue 363613003: Removing using declarations that import names in the C++ Standard library. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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/modules/webaudio/AudioBufferSourceNode.cpp ('k') | Source/modules/webaudio/AudioParamTimeline.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioNodeInput.cpp
diff --git a/Source/modules/webaudio/AudioNodeInput.cpp b/Source/modules/webaudio/AudioNodeInput.cpp
index 24da41ddfa1bf27a64ca4084eccee688179eb1ab..7c79549e62153cb52c4a8ce6913a42609675db6c 100644
--- a/Source/modules/webaudio/AudioNodeInput.cpp
+++ b/Source/modules/webaudio/AudioNodeInput.cpp
@@ -32,8 +32,6 @@
#include "modules/webaudio/AudioNodeOutput.h"
#include <algorithm>
-using namespace std;
-
namespace WebCore {
inline AudioNodeInput::AudioNodeInput(AudioNode* node)
@@ -164,11 +162,11 @@ unsigned AudioNodeInput::numberOfChannels() const
AudioNodeOutput* output = *i;
// Use output()->numberOfChannels() instead of output->bus()->numberOfChannels(),
// because the calling of AudioNodeOutput::bus() is not safe here.
- maxChannels = max(maxChannels, output->numberOfChannels());
+ maxChannels = std::max(maxChannels, output->numberOfChannels());
}
if (mode == AudioNode::ClampedMax)
- maxChannels = min(maxChannels, static_cast<unsigned>(node()->channelCount()));
+ maxChannels = std::min(maxChannels, static_cast<unsigned>(node()->channelCount()));
return maxChannels;
}
« no previous file with comments | « Source/modules/webaudio/AudioBufferSourceNode.cpp ('k') | Source/modules/webaudio/AudioParamTimeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698