summaryrefslogtreecommitdiff
path: root/typearchive.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'typearchive.cpp')
-rw-r--r--typearchive.cpp1
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;