Changeset 128829 in webkit
- Timestamp:
- Sep 17, 2012 5:40:03 PM (12 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r128820 r128829 1 2012-09-17 Glenn Adams <glenn@skynav.com> 2 3 Including HexNumber.h fails build if hexDigitsForMode is not referenced 4 https://bugs.webkit.org/show_bug.cgi?id=96873 5 6 Reviewed by Benjamin Poulain. 7 8 Ensure release build is possible when hexDigitsForMode is not referenced by 9 template expansion. 10 11 * wtf/HexNumber.h: 12 (WTF::Internal::hexDigitsForMode): 13 Change hexDigitsForMode to inline (rather than static). Make string literals 14 {lower,upper}HexDigits non-local and non-static, but const, to which the linker 15 should merge references in the RO data segment. 16 1 17 2012-09-17 Filip Pizlo <fpizlo@apple.com> 2 18 -
trunk/Source/WTF/wtf/HexNumber.h
r111778 r128829 32 32 namespace Internal { 33 33 34 static const char* hexDigitsForMode(HexConversionMode mode) 34 const char lowerHexDigits[17] = "0123456789abcdef"; 35 const char upperHexDigits[17] = "0123456789ABCDEF"; 36 inline const char* hexDigitsForMode(HexConversionMode mode) 35 37 { 36 static const char lowerHexDigits[17] = "0123456789abcdef";37 static const char upperHexDigits[17] = "0123456789ABCDEF";38 38 return mode == Lowercase ? lowerHexDigits : upperHexDigits; 39 39 }
Note: See TracChangeset
for help on using the changeset viewer.