From 1df49afa5522d73d509d20db9588294fe259085f Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Thu, 11 Jan 2018 17:10:34 -0500 Subject: API Temporary Object Elimination. --- plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin.cpp') diff --git a/plugin.cpp b/plugin.cpp index e8dd881d..2378fdab 100644 --- a/plugin.cpp +++ b/plugin.cpp @@ -212,7 +212,7 @@ vector 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; } -- cgit v1.3.1