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

Unified Diff: net/tools/balsa/string_piece_utils.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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: 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_
-

Powered by Google App Engine
This is Rietveld 408576698