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

Unified Diff: third_party/WebKit/Source/wtf/text/StringImpl.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
« no previous file with comments | « third_party/WebKit/Source/wtf/text/StringImpl.h ('k') | third_party/WebKit/Source/wtf/text/TextCodec.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/text/StringImpl.cpp
diff --git a/third_party/WebKit/Source/wtf/text/StringImpl.cpp b/third_party/WebKit/Source/wtf/text/StringImpl.cpp
index dfaef64356afd78cdbeef85436b84286d5243fac..2f82c06ba0495ae6d5b9d483c7ef9239a52281fe 100644
--- a/third_party/WebKit/Source/wtf/text/StringImpl.cpp
+++ b/third_party/WebKit/Source/wtf/text/StringImpl.cpp
@@ -521,8 +521,8 @@ PassRefPtr<StringImpl> StringImpl::lower()
for (unsigned i = firstIndexToBeLowered; i < m_length; ++i) {
LChar ch = characters8()[i];
- data8[i] = UNLIKELY(ch & ~0x7F) ? static_cast<LChar>(Unicode::toLower(ch))
- : toASCIILower(ch);
+ data8[i] = UNLIKELY(ch & ~0x7F)
+ ? static_cast<LChar>(Unicode::toLower(ch)) : toASCIILower(ch);
}
return newImpl.release();
@@ -625,8 +625,9 @@ PassRefPtr<StringImpl> StringImpl::upper()
if (c == smallLetterSharpSCharacter) {
*dest++ = 'S';
*dest++ = 'S';
- } else
+ } else {
*dest++ = static_cast<LChar>(Unicode::toUpper(c));
+ }
}
return newImpl.release();
@@ -1599,7 +1600,7 @@ PassRefPtr<StringImpl> StringImpl::replace(unsigned position, unsigned lengthToR
if (str)
memcpy(data + position, str->characters8(), lengthToInsert * sizeof(LChar));
memcpy(data + position + lengthToInsert, characters8() + position + lengthToReplace,
- (length() - position - lengthToReplace) * sizeof(LChar));
+ (length() - position - lengthToReplace) * sizeof(LChar));
return newImpl.release();
}
UChar* data;
« no previous file with comments | « third_party/WebKit/Source/wtf/text/StringImpl.h ('k') | third_party/WebKit/Source/wtf/text/TextCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698