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

Unified Diff: Source/platform/geometry/FloatQuad.cpp

Issue 519463002: Removing "using" declarations that import names in the C++ Standard library.(Source/platform/[geome… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebasing 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/geometry/FloatSize.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/FloatQuad.cpp
diff --git a/Source/platform/geometry/FloatQuad.cpp b/Source/platform/geometry/FloatQuad.cpp
index 5e9e9791880124d3c6b41a022edd0064b4ff4ed5..39b7b0e35fdabfbd39bf7adc4b2b92ca3903f379 100644
--- a/Source/platform/geometry/FloatQuad.cpp
+++ b/Source/platform/geometry/FloatQuad.cpp
@@ -34,18 +34,16 @@
#include <algorithm>
#include <limits>
-using namespace std;
-
namespace blink {
static inline float min4(float a, float b, float c, float d)
{
- return min(min(a, b), min(c, d));
+ return std::min(std::min(a, b), std::min(c, d));
}
static inline float max4(float a, float b, float c, float d)
{
- return max(max(a, b), max(c, d));
+ return std::max(std::max(a, b), std::max(c, d));
}
inline float dot(const FloatSize& a, const FloatSize& b)
@@ -94,7 +92,7 @@ FloatRect FloatQuad::boundingBox() const
static inline bool withinEpsilon(float a, float b)
{
- return fabs(a - b) < numeric_limits<float>::epsilon();
+ return fabs(a - b) < std::numeric_limits<float>::epsilon();
}
bool FloatQuad::isRectilinear() const
« no previous file with comments | « no previous file | Source/platform/geometry/FloatSize.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698