summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Dmitri Gribenko <dmitrig@google.com>2023-08-08 14:06:41 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-08-08 14:07:38 -0700
commita3c403f123050b9cf784dba6ba9578c9981847f5 (patch)
tree646ed3688b0a845387a6ebf901be92d369120c54
parent49146ec1a333631b9a9e30cd2bf0685ad734e4e1 (diff)
Fix ClangTidy warnings
* converting integer literal to bool, use bool literal instead * use '= default' to define a trivial default constructor PiperOrigin-RevId: 554935854 Change-Id: If16a435664641df049b8810044b34a05ea2b4028
-rw-r--r--absl/strings/str_replace_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/strings/str_replace_test.cc b/absl/strings/str_replace_test.cc
index 36cb9551..04b23af6 100644
--- a/absl/strings/str_replace_test.cc
+++ b/absl/strings/str_replace_test.cc
@@ -179,7 +179,7 @@ TEST(StrReplaceAll, ReplacementsInPlaceInMap) {
}
struct Cont {
- Cont() {}
+ Cont() = default;
explicit Cont(absl::string_view src) : data(src) {}
absl::string_view data;