summaryrefslogtreecommitdiff
path: root/plugin.cpp
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2018-01-11 17:10:34 -0500
committerPeter LaFosse <peter@vector35.com>2018-03-23 17:10:06 -0400
commit3190696d1c0d7d94420872202a82a43e03dbcb80 (patch)
tree700b6ef0f675caeae6694997a802feb7385f489d /plugin.cpp
parent0ad1b8c48a6df3169fc7c80188925b8ef871d112 (diff)
API Temporary Object Elimination.
Diffstat (limited to 'plugin.cpp')
-rw-r--r--plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin.cpp b/plugin.cpp
index e8dd881d..2378fdab 100644
--- a/plugin.cpp
+++ b/plugin.cpp
@@ -212,7 +212,7 @@ vector<PluginCommand> PluginCommand::GetList()
size_t count;
BNPluginCommand* commands = BNGetAllPluginCommands(&count);
for (size_t i = 0; i < count; i++)
- result.push_back(PluginCommand(commands[i]));
+ result.emplace_back(commands[i]);
BNFreePluginCommandList(commands);
return result;
}