| Index: net/tools/balsa/string_piece_utils.h
|
| diff --git a/net/tools/balsa/string_piece_utils.h b/net/tools/balsa/string_piece_utils.h
|
| index eb0eaf365c83c03afb82b0a419be1094649dfc02..5cdbb08befaf15b73bc06f3ab9b75f5b84671e78 100644
|
| --- a/net/tools/balsa/string_piece_utils.h
|
| +++ b/net/tools/balsa/string_piece_utils.h
|
| @@ -16,8 +16,8 @@ struct StringPieceCaseHash {
|
| size_t operator()(const base::StringPiece& sp) const {
|
| // based on __stl_string_hash in http://www.sgi.com/tech/stl/string
|
| size_t hash_val = 0;
|
| - for (base::StringPiece::const_iterator it = sp.begin();
|
| - it != sp.end(); ++it) {
|
| + for (base::StringPiece::const_iterator it = sp.begin(); it != sp.end();
|
| + ++it) {
|
| hash_val = 5 * hash_val + tolower(*it);
|
| }
|
| return hash_val;
|
| @@ -50,15 +50,15 @@ struct StringPieceUtils {
|
| ++c;
|
| }
|
| if (c == e) {
|
| - *piece1 = base::StringPiece(c, e-c);
|
| + *piece1 = base::StringPiece(c, e - c);
|
| return;
|
| }
|
| --e;
|
| - while (c != e &&isspace(*e)) {
|
| + while (c != e && isspace(*e)) {
|
| --e;
|
| }
|
| ++e;
|
| - *piece1 = base::StringPiece(c, e-c);
|
| + *piece1 = base::StringPiece(c, e - c);
|
| }
|
|
|
| static bool StartsWithIgnoreCase(const base::StringPiece& text,
|
| @@ -75,9 +75,6 @@ struct StringPieceCaseEqual {
|
| }
|
| };
|
|
|
| -
|
| -
|
| } // namespace net
|
|
|
| #endif // NET_TOOLS_BALSA_STRING_PIECE_UTILS_H_
|
| -
|
|
|