Skip to content

Commit

Permalink
Internal Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 515855852
Change-Id: I8016eefd45c36089e189bbd1ebbe9fdabe68255b
  • Loading branch information
Abseil Team authored and Copybara-Service committed Mar 11, 2023
1 parent 038e392 commit 391ce62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions googlemock/include/gmock/gmock-matchers.h
Expand Up @@ -1474,6 +1474,7 @@ class SomeOfArrayMatcher {
operator Matcher<U>() const { // NOLINT
using RawU = typename std::decay<U>::type;
std::vector<Matcher<RawU>> matchers;
matchers.reserve(matchers_.size());
for (const auto& matcher : matchers_) {
matchers.push_back(MatcherCast<RawU>(matcher));
}
Expand Down

0 comments on commit 391ce62

Please sign in to comment.