aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2015-08-26 22:04:30 -0700
committerGravatar yang-g <yangg@google.com>2015-08-26 22:04:30 -0700
commit0d9f81f741b33e23941db435b9ba7a9ed37adaec (patch)
tree8396780e126a8db360700b182ed2722eef2527a9 /src
parent967caaada09ab68acb6242311549012f1a07bbff (diff)
minor fixes
Diffstat (limited to 'src')
-rw-r--r--src/cpp/util/string_ref.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpp/util/string_ref.cc b/src/cpp/util/string_ref.cc
index eb54f65e3a..9adc092013 100644
--- a/src/cpp/util/string_ref.cc
+++ b/src/cpp/util/string_ref.cc
@@ -80,7 +80,7 @@ size_t string_ref::find(string_ref s) const {
}
size_t string_ref::find(char c) const {
- auto it = std::find_if(cbegin(), cend(), [c](char cc) { return cc == c; });
+ auto it = std::find(cbegin(), cend(), c);
return it == cend() ? npos : std::distance(cbegin(), it);
}