summaryrefslogtreecommitdiff
path: root/plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.cpp')
-rw-r--r--plugin.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugin.cpp b/plugin.cpp
index 1ff02b38..9f51e989 100644
--- a/plugin.cpp
+++ b/plugin.cpp
@@ -53,6 +53,17 @@ PluginCommand::~PluginCommand()
}
+PluginCommand& PluginCommand::operator=(const PluginCommand& cmd)
+{
+ BNFreeString(m_command.name);
+ BNFreeString(m_command.description);
+ m_command = cmd.m_command;
+ m_command.name = BNAllocString(cmd.m_command.name);
+ m_command.description = BNAllocString(cmd.m_command.description);
+ return *this;
+}
+
+
void PluginCommand::DefaultPluginCommandActionCallback(void* ctxt, BNBinaryView* view)
{
RegisteredDefaultCommand* cmd = (RegisteredDefaultCommand*)ctxt;