| 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 c430753c404fc326265b0bc1b3c99afe8b4776c1..d7ffb998f8862787cb4e745124c9a16671f51cfa 100644
|
| --- a/third_party/WebKit/Source/wtf/text/AtomicStringCF.cpp
|
| +++ b/third_party/WebKit/Source/wtf/text/AtomicStringCF.cpp
|
| @@ -33,24 +33,23 @@
|
|
|
| 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)
|
|
|