Changeset 239237 in webkit
- Timestamp:
- Dec 14, 2018 3:23:10 PM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r239231 r239237 1 2018-12-14 David Kilzer <ddkilzer@apple.com> 2 3 clang-tidy: Fix unnecessary copy of objects for operator==() methods 4 <https://webkit.org/b/192712> 5 <rdar://problem/46739332> 6 7 Reviewed by Andy Estes. 8 9 * b3/air/AirAllocateRegistersByGraphColoring.cpp: 10 (JSC::B3::Air::(anonymous namespace)::AbstractColoringAllocator::InterferenceEdge::operator==): 11 - Change argument from const to const reference to avoid a copy. 12 1 13 2018-12-14 Commit Queue <commit-queue@webkit.org> 2 14 -
trunk/Source/JavaScriptCore/b3/air/AirAllocateRegistersByGraphColoring.cpp
r219648 r239237 467 467 } 468 468 469 bool operator==(const InterferenceEdge other) const469 bool operator==(const InterferenceEdge& other) const 470 470 { 471 471 return m_value == other.m_value; -
trunk/Source/WebCore/ChangeLog
r239236 r239237 1 2018-12-14 David Kilzer <ddkilzer@apple.com> 2 3 clang-tidy: Fix unnecessary copy of objects for operator==() methods 4 <https://webkit.org/b/192712> 5 <rdar://problem/46739332> 6 7 Reviewed by Andy Estes. 8 9 * contentextensions/HashableActionList.h: 10 (WebCore::ContentExtensions::HashableActionList::operator== const): 11 (WebCore::ContentExtensions::HashableActionList::operator!= const): 12 * platform/network/FormData.h: 13 (WebCore::FormDataElement::EncodedFileData::operator== const): 14 (WebCore::FormDataElement::EncodedBlobData::operator== const): 15 - Change arguments from const to const reference to avoid 16 copies. 17 1 18 2018-12-14 Jer Noble <jer.noble@apple.com> 2 19 -
trunk/Source/WebCore/contentextensions/HashableActionList.h
r208179 r239237 54 54 bool isDeletedValue() const { return state == Deleted; } 55 55 56 bool operator==(const HashableActionList other) const56 bool operator==(const HashableActionList& other) const 57 57 { 58 58 return state == other.state && actions == other.actions; 59 59 } 60 60 61 bool operator!=(const HashableActionList other) const61 bool operator!=(const HashableActionList& other) const 62 62 { 63 63 return !(*this == other); -
trunk/Source/WebCore/platform/network/FormData.h
r238802 r239237 86 86 } 87 87 88 bool operator==(const EncodedFileData other) const88 bool operator==(const EncodedFileData& other) const 89 89 { 90 90 return filename == other.filename … … 150 150 URL url; 151 151 152 bool operator==(const EncodedBlobData other) const152 bool operator==(const EncodedBlobData& other) const 153 153 { 154 154 return url == other.url;
Note: See TracChangeset
for help on using the changeset viewer.