Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use find instead of contains for unordered_map
https://bugs.webkit.org/show_bug.cgi?id=265920 Reviewed by Don Olmstead. Build fix for PlayStation. `map.contains(element)` may read nicely, but `map.find(element) != map.end()` is still a one-liner. Let's stick to the latter for the moment since it's non-trivial to add a new method to an existing STL container. * Source/WebCore/platform/graphics/SourceBufferPrivate.cpp: (WebCore::SourceBufferPrivate::addTrackBuffer): (WebCore::SourceBufferPrivate::validateInitializationSegment): Canonical link: https://commits.webkit.org/271589@main
- Loading branch information