mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb/CSS: Use default operator== where possible in GridTrackSize
No behavior change.
This commit is contained in:
parent
8d83dce1d7
commit
286771457a
Notes:
github-actions[bot]
2025-06-13 17:58:43 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 286771457a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5080
Reviewed-by: https://github.com/trflynn89
2 changed files with 6 additions and 33 deletions
|
@ -243,15 +243,6 @@ Vector<ExplicitGridTrack> GridTrackSizeList::track_list() const
|
|||
return track_list;
|
||||
}
|
||||
|
||||
bool GridTrackSizeList::operator==(GridTrackSizeList const& other) const
|
||||
{
|
||||
if (m_list.size() != other.m_list.size())
|
||||
return false;
|
||||
for (size_t i = 0; i < m_list.size(); ++i) {
|
||||
if (m_list[i] != other.m_list[i])
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
bool GridTrackSizeList::operator==(GridTrackSizeList const& other) const = default;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue