Title: [151437] trunk/Source/WebCore
- Revision
- 151437
- Author
- [email protected]
- Date
- 2013-06-11 08:06:16 -0700 (Tue, 11 Jun 2013)
Log Message
Web Inspector: Remove 'using namespace std'
https://bugs.webkit.org/show_bug.cgi?id=117498
Patch by Seokju Kwon <[email protected]> on 2013-06-11
Reviewed by Anders Carlsson.
No new tests, no behavior change.
* inspector/InspectorAgent.cpp: Remove unneeded 'using namespace std'.
* inspector/InspectorFrontendClientLocal.cpp: Use explicit std:: qualifiers instead.
(WebCore::InspectorFrontendClientLocal::constrainedAttachedWindowHeight):
(WebCore::InspectorFrontendClientLocal::constrainedAttachedWindowWidth):
* inspector/InspectorFrontendHost.cpp: Remove unneeded 'using namespace std'.
* inspector/InspectorPageAgent.cpp: Remove unneeded 'using namespace std'.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (151436 => 151437)
--- trunk/Source/WebCore/ChangeLog 2013-06-11 14:42:57 UTC (rev 151436)
+++ trunk/Source/WebCore/ChangeLog 2013-06-11 15:06:16 UTC (rev 151437)
@@ -1,3 +1,19 @@
+2013-06-11 Seokju Kwon <[email protected]>
+
+ Web Inspector: Remove 'using namespace std'
+ https://bugs.webkit.org/show_bug.cgi?id=117498
+
+ Reviewed by Anders Carlsson.
+
+ No new tests, no behavior change.
+
+ * inspector/InspectorAgent.cpp: Remove unneeded 'using namespace std'.
+ * inspector/InspectorFrontendClientLocal.cpp: Use explicit std:: qualifiers instead.
+ (WebCore::InspectorFrontendClientLocal::constrainedAttachedWindowHeight):
+ (WebCore::InspectorFrontendClientLocal::constrainedAttachedWindowWidth):
+ * inspector/InspectorFrontendHost.cpp: Remove unneeded 'using namespace std'.
+ * inspector/InspectorPageAgent.cpp: Remove unneeded 'using namespace std'.
+
2013-06-11 Christophe Dumez <[email protected]>
Support latest Web IDL named property getters
Modified: trunk/Source/WebCore/inspector/InspectorAgent.cpp (151436 => 151437)
--- trunk/Source/WebCore/inspector/InspectorAgent.cpp 2013-06-11 14:42:57 UTC (rev 151436)
+++ trunk/Source/WebCore/inspector/InspectorAgent.cpp 2013-06-11 15:06:16 UTC (rev 151437)
@@ -56,8 +56,6 @@
#include <wtf/PassRefPtr.h>
#include <wtf/RefPtr.h>
-using namespace std;
-
namespace WebCore {
namespace InspectorAgentState {
Modified: trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp (151436 => 151437)
--- trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp 2013-06-11 14:42:57 UTC (rev 151436)
+++ trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp 2013-06-11 15:06:16 UTC (rev 151437)
@@ -324,14 +324,12 @@
unsigned InspectorFrontendClientLocal::constrainedAttachedWindowHeight(unsigned preferredHeight, unsigned totalWindowHeight)
{
- using namespace std;
- return roundf(max(minimumAttachedHeight, min<float>(preferredHeight, totalWindowHeight * maximumAttachedHeightRatio)));
+ return roundf(std::max(minimumAttachedHeight, std::min<float>(preferredHeight, totalWindowHeight * maximumAttachedHeightRatio)));
}
unsigned InspectorFrontendClientLocal::constrainedAttachedWindowWidth(unsigned preferredWidth, unsigned totalWindowWidth)
{
- using namespace std;
- return roundf(max(minimumAttachedWidth, min<float>(preferredWidth, totalWindowWidth - minimumAttachedInspectedWidth)));
+ return roundf(std::max(minimumAttachedWidth, std::min<float>(preferredWidth, totalWindowWidth - minimumAttachedInspectedWidth)));
}
void InspectorFrontendClientLocal::sendMessageToBackend(const String& message)
Modified: trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp (151436 => 151437)
--- trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp 2013-06-11 14:42:57 UTC (rev 151436)
+++ trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp 2013-06-11 15:06:16 UTC (rev 151437)
@@ -56,8 +56,6 @@
#include "UserGestureIndicator.h"
#include <wtf/StdLibExtras.h>
-using namespace std;
-
namespace WebCore {
#if ENABLE(CONTEXT_MENUS)
Modified: trunk/Source/WebCore/inspector/InspectorPageAgent.cpp (151436 => 151437)
--- trunk/Source/WebCore/inspector/InspectorPageAgent.cpp 2013-06-11 14:42:57 UTC (rev 151436)
+++ trunk/Source/WebCore/inspector/InspectorPageAgent.cpp 2013-06-11 15:06:16 UTC (rev 151437)
@@ -83,8 +83,6 @@
#include <wtf/text/Base64.h>
#include <wtf/text/StringBuilder.h>
-using namespace std;
-
namespace WebCore {
namespace PageAgentState {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes