Delete use of STR_CASE_CMP, replaced with absl::EqualsIgnoreCase.

Bug: webrtc:5876
Change-Id: Ica2d47ca45b8ef01a548d8dbe31dbed740a0ebda
Reviewed-on: https://webrtc-review.googlesource.com/c/106820
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25306}
This commit is contained in:
Niels Möller
2018-10-22 09:48:08 +02:00
committed by Commit Bot
parent 01cf44d397
commit 2edab4c026
42 changed files with 146 additions and 142 deletions

View File

@ -14,14 +14,14 @@
#include <vector>
#include "absl/memory/memory.h"
#include "common_types.h" // NOLINT(build/include)
#include "absl/strings/match.h"
#include "modules/audio_coding/codecs/ilbc/audio_decoder_ilbc.h"
namespace webrtc {
absl::optional<AudioDecoderIlbc::Config> AudioDecoderIlbc::SdpToConfig(
const SdpAudioFormat& format) {
return STR_CASE_CMP(format.name.c_str(), "ILBC") == 0 &&
return absl::EqualsIgnoreCase(format.name, "ILBC") &&
format.clockrate_hz == 8000 && format.num_channels == 1
? absl::optional<Config>(Config())
: absl::nullopt;