summaryrefslogtreecommitdiff
path: root/enterprise.cpp
diff options
context:
space:
mode:
authorScott Lagler <laglerscott@gmail.com>2025-12-12 19:20:21 -0500
committerGlenn Smith <glenn@vector35.com>2025-12-16 17:45:24 -0500
commit6138978808829172448615980742756831959788 (patch)
tree746bb0a634c139967c1755dcbcfb8c3395b97ff5 /enterprise.cpp
parent3967000448807875468673398445854536525610 (diff)
Add more reserve calls
Diffstat (limited to 'enterprise.cpp')
-rw-r--r--enterprise.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/enterprise.cpp b/enterprise.cpp
index bc81a4ec..9f7ed44c 100644
--- a/enterprise.cpp
+++ b/enterprise.cpp
@@ -55,6 +55,7 @@ std::vector<std::pair<std::string, std::string>> BinaryNinja::Enterprise::GetAut
size_t count = BNGetEnterpriseServerAuthenticationMethods(&methods, &names);
std::vector<std::pair<std::string, std::string>> results;
+ results.reserve(count);
for (size_t i = 0; i < count; i++)
{
results.push_back({methods[i], names[i]});