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

Unified Diff: Source/platform/DateComponents.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 | « no previous file | Source/platform/SharedBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/DateComponents.cpp
diff --git a/Source/platform/DateComponents.cpp b/Source/platform/DateComponents.cpp
index dc984eba93552eccb557ff842c1cd04ee3bab9cf..0771bf00239e83b57dfbe575be969965b5d34a9f 100644
--- a/Source/platform/DateComponents.cpp
+++ b/Source/platform/DateComponents.cpp
@@ -37,8 +37,6 @@
#include "wtf/MathExtras.h"
#include "wtf/text/WTFString.h"
-using namespace std;
-
namespace blink {
// HTML5 specification defines minimum week of year is one.
@@ -498,9 +496,9 @@ void DateComponents::setMillisecondsSinceMidnightInternal(double msInDay)
{
ASSERT(msInDay >= 0 && msInDay < msPerDay);
m_millisecond = static_cast<int>(fmod(msInDay, msPerSecond));
- double value = floor(msInDay / msPerSecond);
+ double value = std::floor(msInDay / msPerSecond);
m_second = static_cast<int>(fmod(value, secondsPerMinute));
- value = floor(value / secondsPerMinute);
+ value = std::floor(value / secondsPerMinute);
m_minute = static_cast<int>(fmod(value, minutesPerHour));
m_hour = static_cast<int>(value / minutesPerHour);
}
« no previous file with comments | « no previous file | Source/platform/SharedBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698