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

Unified Diff: Source/core/inspector/ContentSearchUtils.cpp

Issue 329183002: 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
Index: Source/core/inspector/ContentSearchUtils.cpp
diff --git a/Source/core/inspector/ContentSearchUtils.cpp b/Source/core/inspector/ContentSearchUtils.cpp
index 473968b02467f180f0687fd24ce17f7a47eceae6..d025b5ea302b4c5bb4c887bdaff554d317c83a71 100644
--- a/Source/core/inspector/ContentSearchUtils.cpp
+++ b/Source/core/inspector/ContentSearchUtils.cpp
@@ -33,8 +33,6 @@
#include "bindings/v8/ScriptRegexp.h"
#include "wtf/text/StringBuilder.h"
-using namespace std;
-
namespace WebCore {
namespace ContentSearchUtils {
@@ -117,9 +115,9 @@ static String findMagicComment(const String& content, const String& name, MagicC
unsigned length = content.length();
unsigned nameLength = name.length();
- size_t pos = length;
- size_t equalSignPos = 0;
- size_t closingCommentPos = 0;
+ std::size_t pos = length;
+ std::size_t equalSignPos = 0;
+ std::size_t closingCommentPos = 0;
while (true) {
pos = content.reverseFind(name, pos);
if (pos == kNotFound)
@@ -155,12 +153,12 @@ static String findMagicComment(const String& content, const String& name, MagicC
ASSERT(equalSignPos);
ASSERT(commentType != CSSMagicComment || closingCommentPos);
- size_t urlPos = equalSignPos + 1;
+ std::size_t urlPos = equalSignPos + 1;
String match = commentType == CSSMagicComment
? content.substring(urlPos, closingCommentPos - urlPos)
: content.substring(urlPos);
- size_t newLine = match.find("\n");
+ std::size_t newLine = match.find("\n");
if (newLine != kNotFound)
match = match.substring(0, newLine);
match = match.stripWhiteSpace();

Powered by Google App Engine
This is Rietveld 408576698