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

Unified Diff: base/md5.cc

Issue 552004: Style cleanup in preparation for auto-linting base/. (Closed)
Patch Set: Created 10 years, 11 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
« no previous file with comments | « base/logging_win.cc ('k') | base/message_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/md5.cc
diff --git a/base/md5.cc b/base/md5.cc
index f2e1c4af5f679c3956389144a96fbcdfb34c8f3f..f85cf4390d954663662bb65d1637220d6bbb6d4a 100644
--- a/base/md5.cc
+++ b/base/md5.cc
@@ -33,7 +33,7 @@ struct Context {
/*
* Note: this code is harmless on little-endian machines.
*/
-static void byteReverse (unsigned char *buf, unsigned longs){
+static void byteReverse(unsigned char *buf, unsigned longs){
uint32 t;
do {
t = (uint32)((unsigned)buf[3]<<8 | buf[2]) << 16 |
@@ -175,7 +175,7 @@ void MD5Update(MD5Context *pCtx, const void *inbuf, size_t len){
/* Handle any leading odd-sized chunks */
- if ( t ) {
+ if (t) {
unsigned char *p = (unsigned char *)ctx->in + t;
t = 64-t;
@@ -257,7 +257,7 @@ std::string MD5DigestToBase16(const MD5Digest& digest){
ret.resize(32);
int j = 0;
- for(int i = 0; i < 16; i ++){
+ for (int i = 0; i < 16; i ++) {
int a = digest.a[i];
ret[j++] = zEncode[(a>>4)&0xf];
ret[j++] = zEncode[a & 0xf];
« no previous file with comments | « base/logging_win.cc ('k') | base/message_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698