Changeset 13541 in webkit for trunk/JavaScriptCore/kjs/ustring.cpp
- Timestamp:
- Mar 28, 2006, 4:09:20 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/ustring.cpp
r13365 r13541 137 137 // Hack here to avoid a global with a constructor; point to an unsigned short instead of a UChar. 138 138 static unsigned short almostUChar; 139 static UChar *const nonNullUCharPointer = reinterpret_cast<UChar *>(&almostUChar);140 139 UString::Rep UString::Rep::null = { 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 }; 141 UString::Rep UString::Rep::empty = { 0, 0, 1, 0, 0, 0, nonNullUCharPointer, 0, 0, 0, 0 };140 UString::Rep UString::Rep::empty = { 0, 0, 1, 0, 0, 0, reinterpret_cast<UChar*>(&almostUChar), 0, 0, 0, 0 }; 142 141 const int normalStatBufferSize = 4096; 143 142 static char *statBuffer = 0;
Note:
See TracChangeset
for help on using the changeset viewer.