Changeset 286858 in webkit
- Timestamp:
- Dec 10, 2021, 10:17:47 AM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
-
WTF/ChangeLog (modified) (1 diff)
-
WTF/wtf/ListDump.h (modified) (1 diff)
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/testing/InternalsMapLike.cpp (modified) (1 diff)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/WebProcess/WebPage/MomentumEventDispatcher.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r286849 r286858 1 2021-12-09 Darin Adler <darin@apple.com> 2 3 Use simpler idioms for std::less and std::greater possible in modern C++ 4 https://bugs.webkit.org/show_bug.cgi?id=234117 5 6 Reviewed by Anders Carlsson. 7 8 * wtf/ListDump.h: 9 (WTF::sortedListDump): Removed unnecessary template arguments to std::less. 10 1 11 2021-12-10 Keith Miller <keith_miller@apple.com> 2 12 -
trunk/Source/WTF/wtf/ListDump.h
r237099 r286858 122 122 CString sortedListDump(const T& list, const char* comma = ", ") 123 123 { 124 return sortedListDump(list, std::less< typename T::ValueType>(), comma);124 return sortedListDump(list, std::less<>(), comma); 125 125 } 126 126 -
trunk/Source/WebCore/ChangeLog
r286857 r286858 1 2021-12-09 Darin Adler <darin@apple.com> 2 3 Use simpler idioms for std::less and std::greater possible in modern C++ 4 https://bugs.webkit.org/show_bug.cgi?id=234117 5 6 Reviewed by Anders Carlsson. 7 8 * testing/InternalsMapLike.cpp: 9 (WebCore::InternalsMapLike::inspectValues const): Remove unneeded explicit 10 use of std:less, because this is what std::sort by default. 11 1 12 2021-12-10 Commit Queue <commit-queue@webkit.org> 2 13 -
trunk/Source/WebCore/testing/InternalsMapLike.cpp
r253276 r286858 69 69 { 70 70 auto result = copyToVector(m_values.values()); 71 std::sort(result.begin(), result.end() , std::less<unsigned>());71 std::sort(result.begin(), result.end()); 72 72 return result; 73 73 } -
trunk/Source/WebKit/ChangeLog
r286852 r286858 1 2021-12-09 Darin Adler <darin@apple.com> 2 3 Use simpler idioms for std::less and std::greater possible in modern C++ 4 https://bugs.webkit.org/show_bug.cgi?id=234117 5 6 Reviewed by Anders Carlsson. 7 8 * WebProcess/WebPage/MomentumEventDispatcher.cpp: 9 (WebKit::MomentumEventDispatcher::equalizeTailGaps): Removed unneeded 10 template arguments for std::greater, and removed explicit use of std::less, 11 since that's what std::sort does by default. 12 1 13 2021-12-10 Per Arne Vollan <pvollan@apple.com> 2 14 -
trunk/Source/WebKit/WebProcess/WebPage/MomentumEventDispatcher.cpp
r286805 r286858 438 438 439 439 if (deltas[axis][0] > 0) 440 std::sort(deltas[axis].begin(), std::next(deltas[axis].begin(), firstZeroIndex[axis]), std::greater <float>());440 std::sort(deltas[axis].begin(), std::next(deltas[axis].begin(), firstZeroIndex[axis]), std::greater()); 441 441 else 442 std::sort(deltas[axis].begin(), std::next(deltas[axis].begin(), firstZeroIndex[axis]) , std::less<float>());442 std::sort(deltas[axis].begin(), std::next(deltas[axis].begin(), firstZeroIndex[axis])); 443 443 }; 444 444
Note:
See TracChangeset
for help on using the changeset viewer.