Changeset 173245 in webkit for trunk/Source/JavaScriptCore/API/OpaqueJSString.cpp
- Timestamp:
- Sep 3, 2014, 5:53:16 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/OpaqueJSString.cpp
r165719 r173245 57 57 String OpaqueJSString::string() const 58 58 { 59 if (!this)60 return String();61 62 59 // Return a copy of the wrapped string, because the caller may make it an Identifier. 63 60 return m_string.isolatedCopy(); … … 66 63 Identifier OpaqueJSString::identifier(VM* vm) const 67 64 { 68 if ( !this ||m_string.isNull())65 if (m_string.isNull()) 69 66 return Identifier(); 70 67 … … 80 77 const UChar* OpaqueJSString::characters() 81 78 { 82 if (!this)83 return nullptr;84 85 79 // m_characters is put in a local here to avoid an extra atomic load. 86 80 UChar* characters = m_characters;
Note:
See TracChangeset
for help on using the changeset viewer.