Changeset 7798 in webkit for trunk/JavaScriptCore/kjs/ustring.cpp
- Timestamp:
- Oct 9, 2004, 3:17:44 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/ustring.cpp
r7564 r7798 143 143 } 144 144 145 static UChar dummy; 145 // Hack here to avoid a global with a constructor; point to an unsigned short instead of a UChar. 146 static unsigned short almostUChar; 147 static UChar *const nonNullUCharPointer = reinterpret_cast<UChar *>(&almostUChar); 146 148 UString::Rep UString::Rep::null = { 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 }; 147 UString::Rep UString::Rep::empty = { 0, 0, 1, 0, 0, 0, &dummy, 0, 0, 0, 0 };149 UString::Rep UString::Rep::empty = { 0, 0, 1, 0, 0, 0, nonNullUCharPointer, 0, 0, 0, 0 }; 148 150 const int normalStatBufferSize = 4096; 149 151 static char *statBuffer = 0;
Note:
See TracChangeset
for help on using the changeset viewer.