diff options
author | Abseil Team <absl-team@google.com> | 2023-03-11 10:48:04 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-03-11 10:48:36 (GMT) |
commit | 391ce627def20c1e8a54d10b12949b15086473dd (patch) | |
tree | 139c6b1655c63561e7132cc1fc740133ba812c56 /googlemock/include/gmock | |
parent | 038e392ebd8081c756e180475cc361f711fb438d (diff) | |
download | googletest-391ce627def20c1e8a54d10b12949b15086473dd.zip googletest-391ce627def20c1e8a54d10b12949b15086473dd.tar.gz googletest-391ce627def20c1e8a54d10b12949b15086473dd.tar.bz2 |
Internal Code Change
PiperOrigin-RevId: 515855852
Change-Id: I8016eefd45c36089e189bbd1ebbe9fdabe68255b
Diffstat (limited to 'googlemock/include/gmock')
-rw-r--r-- | googlemock/include/gmock/gmock-matchers.h | 1 |
1 files changed, 1 insertions, 0 deletions
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<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)); } |