From 07f1ceeabc0cf63ed8d7ae7aa8d1ff04dda02584 Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Wed, 3 Nov 2010 03:53:35 +0000 Subject: base: Move CaseInsensitiveCompare traits into the base namespace. This should fix conflicts like: 2>d:\src\chromium_src2\src\base/string_util.h(480) : error C2904: 'CaseInsensitiveCompare' : name already used for a template in the current scope 2> d:\src\chromium_src2\src\third_party\xulrunner-sdk\win\include\xpcom\nsStringAPI.h(1406) : see declaration of 'CaseInsensitiveCompare' Reported-by: Jeff Timanus BUG=None TEST=trybots Review URL: http://codereview.chromium.org/4366001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64877 0039d316-1c4b-4281-b951-d872f2087c98 --- net/http/http_response_headers.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net/http/http_response_headers.cc') diff --git a/net/http/http_response_headers.cc b/net/http/http_response_headers.cc index 7376fa0..c2d098c 100644 --- a/net/http/http_response_headers.cc +++ b/net/http/http_response_headers.cc @@ -484,7 +484,7 @@ bool HttpResponseHeaders::HasHeaderValue(const std::string& name, while (EnumerateHeader(&iter, name, &temp)) { if (value.size() == temp.size() && std::equal(temp.begin(), temp.end(), value.begin(), - CaseInsensitiveCompare())) + base::CaseInsensitiveCompare())) return true; } return false; @@ -629,7 +629,7 @@ size_t HttpResponseHeaders::FindHeader(size_t from, const std::string::const_iterator& name_end = parsed_[i].name_end; if (static_cast(name_end - name_begin) == search.size() && std::equal(name_begin, name_end, search.begin(), - CaseInsensitiveCompare())) + base::CaseInsensitiveCompare())) return i; } -- cgit v1.1