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

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

Issue 1611343002: wtf reformat test Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pydent Created 4 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
Index: third_party/WebKit/Source/wtf/text/AtomicStringCF.cpp
diff --git a/third_party/WebKit/Source/wtf/text/AtomicStringCF.cpp b/third_party/WebKit/Source/wtf/text/AtomicStringCF.cpp
index ed8189225401bc9f32a9f1eb12f78120dd0dc893..7d8d4761ce51661d337f4d683576a748831bc974 100644
--- a/third_party/WebKit/Source/wtf/text/AtomicStringCF.cpp
+++ b/third_party/WebKit/Source/wtf/text/AtomicStringCF.cpp
@@ -32,24 +32,24 @@
namespace WTF {
-PassRefPtr<StringImpl> AtomicString::add(CFStringRef string)
-{
- if (!string)
- return nullptr;
+PassRefPtr<StringImpl> AtomicString::add(CFStringRef string) {
+ if (!string)
+ return nullptr;
- CFIndex length = CFStringGetLength(string);
+ CFIndex length = CFStringGetLength(string);
- if (const LChar* ptr = reinterpret_cast<const LChar*>(CFStringGetCStringPtr(string, kCFStringEncodingISOLatin1)))
- return add(ptr, length);
+ if (const LChar* ptr = reinterpret_cast<const LChar*>(
+ CFStringGetCStringPtr(string, kCFStringEncodingISOLatin1)))
+ return add(ptr, length);
- if (const UniChar* ptr = CFStringGetCharactersPtr(string))
- return add(reinterpret_cast<const UChar*>(ptr), length);
+ if (const UniChar* ptr = CFStringGetCharactersPtr(string))
+ return add(reinterpret_cast<const UChar*>(ptr), length);
- Vector<UniChar, 1024> ucharBuffer(length);
- CFStringGetCharacters(string, CFRangeMake(0, length), ucharBuffer.data());
- return add(reinterpret_cast<const UChar*>(ucharBuffer.data()), length);
+ Vector<UniChar, 1024> ucharBuffer(length);
+ CFStringGetCharacters(string, CFRangeMake(0, length), ucharBuffer.data());
+ return add(reinterpret_cast<const UChar*>(ucharBuffer.data()), length);
}
-} // namespace WTF
+} // namespace WTF
-#endif // OS(MACOSX)
+#endif // OS(MACOSX)
« no previous file with comments | « third_party/WebKit/Source/wtf/text/AtomicString.cpp ('k') | third_party/WebKit/Source/wtf/text/AtomicStringHash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698