diff options
| author | Scott Lagler <laglerscott@gmail.com> | 2025-12-09 22:08:06 -0500 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2025-12-16 17:39:41 -0500 |
| commit | 3967000448807875468673398445854536525610 (patch) | |
| tree | ec8e5b7638fdb18540fcdddad0b623df0d28e8a6 /typearchive.cpp | |
| parent | 908a18947d34b06da936a464a69f71e9e0a4eec3 (diff) | |
Add missing std::vector reserve calls
# Conflicts:
# function.cpp
Diffstat (limited to 'typearchive.cpp')
| -rw-r--r-- | typearchive.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/typearchive.cpp b/typearchive.cpp index acd4447b..ee2bd4df 100644 --- a/typearchive.cpp +++ b/typearchive.cpp @@ -232,6 +232,7 @@ TypeContainer TypeArchive::GetTypeContainer() const bool TypeArchive::AddTypes(const std::vector<QualifiedNameAndType>& types) { std::vector<BNQualifiedNameAndType> apiTypes; + apiTypes.reserve(types.size()); for (auto& type : types) { BNQualifiedNameAndType qnat; |
