From 391ce627def20c1e8a54d10b12949b15086473dd Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Sat, 11 Mar 2023 02:48:04 -0800 Subject: Internal Code Change PiperOrigin-RevId: 515855852 Change-Id: I8016eefd45c36089e189bbd1ebbe9fdabe68255b --- googlemock/include/gmock/gmock-matchers.h | 1 + 1 file changed, 1 insertion(+) diff --git a/googlemock/include/gmock/gmock-matchers.h b/googlemock/include/gmock/gmock-matchers.h index 6b264d6..a480576 100644 --- a/googlemock/include/gmock/gmock-matchers.h +++ b/googlemock/include/gmock/gmock-matchers.h @@ -1474,6 +1474,7 @@ class SomeOfArrayMatcher { operator Matcher() const { // NOLINT using RawU = typename std::decay::type; std::vector> matchers; + matchers.reserve(matchers_.size()); for (const auto& matcher : matchers_) { matchers.push_back(MatcherCast(matcher)); } -- cgit v0.12