summaryrefslogtreecommitdiff
path: root/plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.cpp')
-rw-r--r--plugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin.cpp b/plugin.cpp
index e8dd881d..972ce28b 100644
--- a/plugin.cpp
+++ b/plugin.cpp
@@ -211,8 +211,9 @@ vector<PluginCommand> PluginCommand::GetList()
vector<PluginCommand> result;
size_t count;
BNPluginCommand* commands = BNGetAllPluginCommands(&count);
+ result.reserve(count);
for (size_t i = 0; i < count; i++)
- result.push_back(PluginCommand(commands[i]));
+ result.emplace_back(commands[i]);
BNFreePluginCommandList(commands);
return result;
}