| 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)
|
|
|