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

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

Issue 1436153002: Apply clang-format with Chromium-style without column limit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/TextCodec.cpp
diff --git a/third_party/WebKit/Source/wtf/text/TextCodec.cpp b/third_party/WebKit/Source/wtf/text/TextCodec.cpp
index 3cff46e96b9c7762e6ec3d610676de7e811828fc..2af17670d17ef09126a01a36316a6988fad8f8ef 100644
--- a/third_party/WebKit/Source/wtf/text/TextCodec.cpp
+++ b/third_party/WebKit/Source/wtf/text/TextCodec.cpp
@@ -31,27 +31,25 @@
namespace WTF {
-TextCodec::~TextCodec()
-{
+TextCodec::~TextCodec() {
}
-int TextCodec::getUnencodableReplacement(unsigned codePoint, UnencodableHandling handling, UnencodableReplacementArray replacement)
-{
- switch (handling) {
+int TextCodec::getUnencodableReplacement(unsigned codePoint, UnencodableHandling handling, UnencodableReplacementArray replacement) {
+ switch (handling) {
case QuestionMarksForUnencodables:
- replacement[0] = '?';
- replacement[1] = 0;
- return 1;
+ replacement[0] = '?';
+ replacement[1] = 0;
+ return 1;
case EntitiesForUnencodables:
- snprintf(replacement, sizeof(UnencodableReplacementArray), "&#%u;", codePoint);
- return static_cast<int>(strlen(replacement));
+ snprintf(replacement, sizeof(UnencodableReplacementArray), "&#%u;", codePoint);
+ return static_cast<int>(strlen(replacement));
case URLEncodedEntitiesForUnencodables:
- snprintf(replacement, sizeof(UnencodableReplacementArray), "%%26%%23%u%%3B", codePoint);
- return static_cast<int>(strlen(replacement));
- }
- ASSERT_NOT_REACHED();
- replacement[0] = 0;
- return 0;
+ snprintf(replacement, sizeof(UnencodableReplacementArray), "%%26%%23%u%%3B", codePoint);
+ return static_cast<int>(strlen(replacement));
+ }
+ ASSERT_NOT_REACHED();
+ replacement[0] = 0;
+ return 0;
}
-} // namespace WTF
+} // namespace WTF
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextCodec.h ('k') | third_party/WebKit/Source/wtf/text/TextCodecASCIIFastPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698