Changeset 206031 in webkit
- Timestamp:
- Sep 16, 2016 10:46:51 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r205995 r206031 1 2016-09-16 Anders Carlsson <andersca@apple.com> 2 3 Fix isValidEnum to work with older versions of GCC 4 https://bugs.webkit.org/show_bug.cgi?id=162065 5 6 Reviewed by Michael Catanzaro. 7 8 Use the ternary operator instead of a more complex function body. 9 10 * wtf/EnumTraits.h: 11 1 12 2016-09-15 JF Bastien <jfbastien@apple.com> 2 13 -
trunk/Source/WTF/wtf/EnumTraits.h
r204916 r206031 40 40 static constexpr bool isValidEnum(T t) 41 41 { 42 if (static_cast<T>(e) == t) 43 return true; 44 45 return EnumValueChecker<T, EnumValues<E, es...>>::isValidEnum(t); 42 return (static_cast<T>(e) == t) ? true : EnumValueChecker<T, EnumValues<E, es...>>::isValidEnum(t); 46 43 } 47 44 }; -
trunk/Tools/ChangeLog
r206021 r206031 1 2016-09-16 Anders Carlsson <andersca@apple.com> 2 3 Fix isValidEnum to work with older versions of GCC 4 https://bugs.webkit.org/show_bug.cgi?id=162065 5 6 Reviewed by Michael Catanzaro. 7 8 Add EnumTraits.cpp to the CMake build. 9 10 * TestWebKitAPI/CMakeLists.txt: 11 1 12 2016-09-16 Nael Ouedraogo <nael.ouedraogo@crf.canon.fr> 2 13 -
trunk/Tools/TestWebKitAPI/CMakeLists.txt
r204864 r206031 49 49 ${TESTWEBKITAPI_DIR}/Tests/WTF/DateMath.cpp 50 50 ${TESTWEBKITAPI_DIR}/Tests/WTF/Deque.cpp 51 ${TESTWEBKITAPI_DIR}/Tests/WTF/EnumTraits.cpp 51 52 ${TESTWEBKITAPI_DIR}/Tests/WTF/HashCountedSet.cpp 52 53 ${TESTWEBKITAPI_DIR}/Tests/WTF/HashMap.cpp
Note: See TracChangeset
for help on using the changeset viewer.