diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 14:28:30 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 14:28:30 +0000 |
commit | f07467d2f7344af716a90df0b54573b4fd9967e3 (patch) | |
tree | c8ae35b12a8e0f88b29ae5cb0e86d995a36154db /net/base/cookie_monster.cc | |
parent | 7b862a32d4f20c96e2a98c39e26b4c6b77f9e1cc (diff) | |
download | chromium_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/base/cookie_monster.cc')
-rwxr-xr-x | net/base/cookie_monster.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/base/cookie_monster.cc b/net/base/cookie_monster.cc index f74752a..7e17906 100755 --- a/net/base/cookie_monster.cc +++ b/net/base/cookie_monster.cc @@ -1184,7 +1184,7 @@ static inline bool CharIsA(const char c, const char* chars) { static inline bool SeekTo(std::string::const_iterator* it, const std::string::const_iterator& end, const char* chars) { - for (; *it != end && !CharIsA(**it, chars); ++(*it)); + for (; *it != end && !CharIsA(**it, chars); ++(*it)) {} return *it == end; } // Seek the iterator to the first occurrence of a character not in |chars|. @@ -1192,13 +1192,13 @@ static inline bool SeekTo(std::string::const_iterator* it, static inline bool SeekPast(std::string::const_iterator* it, const std::string::const_iterator& end, const char* chars) { - for (; *it != end && CharIsA(**it, chars); ++(*it)); + for (; *it != end && CharIsA(**it, chars); ++(*it)) {} return *it == end; } static inline bool SeekBackPast(std::string::const_iterator* it, const std::string::const_iterator& end, const char* chars) { - for (; *it != end && CharIsA(**it, chars); --(*it)); + for (; *it != end && CharIsA(**it, chars); --(*it)) {} return *it == end; } |