commit | 62634262d88b22a577c8fab8861be4cc4bc1330f | [log] [tgz] |
---|---|---|
author | Adam Langley <alangley@gmail.com> | Wed Dec 16 11:49:41 2020 -0800 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Wed Dec 16 20:29:23 2020 +0000 |
tree | 7a5d2e89cf04bad89d9970e85d2cfd6ca4ae2458 | |
parent | ca058c06474c4492f0fbd517679793234dde6165 [diff] |
Use more efficient std::string::find overload. This reflects an internal LSC cleanup. Change-Id: Ic6d363ab14e0b021a579cdcf0a7a68a9021e2e18 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/44664 Commit-Queue: Adam Langley <agl@google.com> Commit-Queue: David Benjamin <davidben@google.com> Reviewed-by: David Benjamin <davidben@google.com>
diff --git a/crypto/test/file_test.cc b/crypto/test/file_test.cc index c39c078..963429d 100644 --- a/crypto/test/file_test.cc +++ b/crypto/test/file_test.cc
@@ -179,7 +179,7 @@ kv = std::string(kv.begin() + 1, kv.end() - 1); for (;;) { - size_t idx = kv.find(","); + size_t idx = kv.find(','); if (idx == std::string::npos) { idx = kv.size(); }