From 7c22ff7541ae523d378977d7a455010edfd46730 Mon Sep 17 00:00:00 2001 From: Fredrik Roubert Date: Mon, 18 Mar 2024 18:00:51 +0100 Subject: [PATCH] ICU-22621 Clang-Tidy: readability-string-compare https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/readability/string-compare.html --- icu4c/source/test/intltest/loctest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/test/intltest/loctest.cpp b/icu4c/source/test/intltest/loctest.cpp index f12b954ab00..9de05db76cd 100644 --- a/icu4c/source/test/intltest/loctest.cpp +++ b/icu4c/source/test/intltest/loctest.cpp @@ -5711,7 +5711,7 @@ public: }; bool isKnownSourceForCLDR17099(const std::string& s) { - if (s.compare("qaa-Cyrl-CH") == 0) { + if (s == "qaa-Cyrl-CH") { return true; }