Use Abseil container algorithms in api/
Bug: None
Change-Id: I87439a234d7018757eb61e99d5c6f9c7be4ab357
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/128825
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Amit Hilbuch <amithi@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27272}
diff --git a/api/rtp_parameters.cc b/api/rtp_parameters.cc
index 9ba2423..aea74a9 100644
--- a/api/rtp_parameters.cc
+++ b/api/rtp_parameters.cc
@@ -221,10 +221,10 @@
// Only add non-encrypted extension if no encrypted with the same URI
// is also present...
- if (std::find_if(extension + 1, extensions.end(),
- [extension](const RtpExtension& check) {
- return extension->uri == check.uri;
- }) != extensions.end()) {
+ if (std::any_of(extension + 1, extensions.end(),
+ [&](const RtpExtension& check) {
+ return extension->uri == check.uri;
+ })) {
continue;
}