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

Unified Diff: third_party/WebKit/Source/wtf/text/Base64.cpp

Issue 1373773002: Fix check-webkit-style errors in Source/wtf/text/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: third_party/WebKit/Source/wtf/text/Base64.cpp
diff --git a/third_party/WebKit/Source/wtf/text/Base64.cpp b/third_party/WebKit/Source/wtf/text/Base64.cpp
index 6a5c607f4a73be1a90e8af772ba440db901ba3cc..b179184fb8ce63ae1f9912927de1db5c200104f9 100644
--- a/third_party/WebKit/Source/wtf/text/Base64.cpp
+++ b/third_party/WebKit/Source/wtf/text/Base64.cpp
@@ -24,8 +24,8 @@
#include "config.h"
#include "Base64.h"
-#include <limits.h>
#include "wtf/StringExtras.h"
+#include <limits.h>
namespace WTF {
@@ -110,14 +110,15 @@ void base64Encode(const char* data, unsigned len, Vector<char>& out, Base64Encod
if (sidx < len) {
if (insertLFs && (count > 0) && !(count % 76))
- out[didx++] = '\n';
+ out[didx++] = '\n';
out[didx++] = base64EncMap[(data[sidx] >> 2) & 077];
if (sidx < len - 1) {
out[didx++] = base64EncMap[((data[sidx + 1] >> 4) & 017) | ((data[sidx] << 4) & 077)];
out[didx++] = base64EncMap[(data[sidx + 1] << 2) & 077];
- } else
+ } else {
out[didx++] = base64EncMap[(data[sidx] << 4) & 077];
+ }
}
// Add padding
« no previous file with comments | « third_party/WebKit/Source/wtf/text/AtomicStringHash.h ('k') | third_party/WebKit/Source/wtf/text/Collator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698