summaryrefslogtreecommitdiffstats
path: root/googletest
diff options
context:
space:
mode:
authorJulien JEMINE <julien.jemine@gmail.com>2020-12-29 15:46:55 (GMT)
committerJulien JEMINE <julien.jemine@gmail.com>2020-12-29 15:46:55 (GMT)
commit9614d8c1d69dee9de2e0771a0da2b69a34964e33 (patch)
tree20626c794ce020115a85c3ab2d958bae0e6f5d64 /googletest
parent389cb68b87193358358ae87cc56d257fd0d80189 (diff)
downloadgoogletest-9614d8c1d69dee9de2e0771a0da2b69a34964e33.zip
googletest-9614d8c1d69dee9de2e0771a0da2b69a34964e33.tar.gz
googletest-9614d8c1d69dee9de2e0771a0da2b69a34964e33.tar.bz2
Using auto instead of container::const_iteratorrefs/pull/3195/head
Diffstat (limited to 'googletest')
-rw-r--r--googletest/src/gtest-internal-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/src/gtest-internal-inl.h b/googletest/src/gtest-internal-inl.h
index 38306c8..b4d820b 100644
--- a/googletest/src/gtest-internal-inl.h
+++ b/googletest/src/gtest-internal-inl.h
@@ -290,7 +290,7 @@ inline int CountIf(const Container& c, Predicate predicate) {
// Implemented as an explicit loop since std::count_if() in libCstd on
// Solaris has a non-standard signature.
int count = 0;
- for (typename Container::const_iterator it = c.begin(); it != c.end(); ++it) {
+ for (auto it = c.begin(); it != c.end(); ++it) {
if (predicate(*it))
++count;
}