summaryrefslogtreecommitdiffstats
path: root/net/http/http_response_headers.cc
diff options
context:
space:
mode:
authorthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-16 14:28:30 +0000
committerthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-16 14:28:30 +0000
commitf07467d2f7344af716a90df0b54573b4fd9967e3 (patch)
treec8ae35b12a8e0f88b29ae5cb0e86d995a36154db /net/http/http_response_headers.cc
parent7b862a32d4f20c96e2a98c39e26b4c6b77f9e1cc (diff)
downloadchromium_src-f07467d2f7344af716a90df0b54573b4fd9967e3.zip
chromium_src-f07467d2f7344af716a90df0b54573b4fd9967e3.tar.gz
chromium_src-f07467d2f7344af716a90df0b54573b4fd9967e3.tar.bz2
Working towards -Wextra
- Make loops use {} instead of a ';' to make it clear there is no body to the loop. - Remove checks of unsigned values for <0 - coordinates should be CGFloat, not NSUInteger. BUG=34160 TEST=none Review URL: http://codereview.chromium.org/2865003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49939 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_headers.cc')
-rw-r--r--net/http/http_response_headers.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/http/http_response_headers.cc b/net/http/http_response_headers.cc
index 2e8d9fb..e6980ab 100644
--- a/net/http/http_response_headers.cc
+++ b/net/http/http_response_headers.cc
@@ -137,7 +137,7 @@ void HttpResponseHeaders::Persist(Pickle* pickle, PersistOptions options) {
// Locate the start of the next header.
size_t k = i;
- while (++k < parsed_.size() && parsed_[k].is_continuation());
+ while (++k < parsed_.size() && parsed_[k].is_continuation()) {}
--k;
std::string header_name(parsed_[i].name_begin, parsed_[i].name_end);
@@ -177,7 +177,7 @@ void HttpResponseHeaders::Update(const HttpResponseHeaders& new_headers) {
// Locate the start of the next header.
size_t k = i;
- while (++k < new_parsed.size() && new_parsed[k].is_continuation());
+ while (++k < new_parsed.size() && new_parsed[k].is_continuation()) {}
--k;
const std::string::const_iterator& name_begin = new_parsed[i].name_begin;
@@ -208,7 +208,7 @@ void HttpResponseHeaders::MergeWithHeaders(const std::string& raw_headers,
// Locate the start of the next header.
size_t k = i;
- while (++k < parsed_.size() && parsed_[k].is_continuation());
+ while (++k < parsed_.size() && parsed_[k].is_continuation()) {}
--k;
std::string name(parsed_[i].name_begin, parsed_[i].name_end);