summaryrefslogtreecommitdiffstats
path: root/googletest/src
diff options
context:
space:
mode:
authordinord <dinor@google.com>2021-09-23 23:31:42 (GMT)
committerdinord <dinor@google.com>2021-09-23 23:31:42 (GMT)
commite4717df71a4f45bf9f0ac88c6cd9846a0bc248dd (patch)
treeb9f4980d14ad76e74a000d417cc719273b0bca7d /googletest/src
parent09074c1571a348eb2ed7e2cf8bdb8ed1dd56915a (diff)
parent9614d8c1d69dee9de2e0771a0da2b69a34964e33 (diff)
downloadgoogletest-e4717df71a4f45bf9f0ac88c6cd9846a0bc248dd.zip
googletest-e4717df71a4f45bf9f0ac88c6cd9846a0bc248dd.tar.gz
googletest-e4717df71a4f45bf9f0ac88c6cd9846a0bc248dd.tar.bz2
Merge pull request #3195 from Inujel:fix-3194
PiperOrigin-RevId: 398271948
Diffstat (limited to 'googletest/src')
-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 075b84c..0b25d2f 100644
--- a/googletest/src/gtest-internal-inl.h
+++ b/googletest/src/gtest-internal-inl.h
@@ -273,7 +273,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;
}