Add missing copy constructors

This commit is contained in:
Maschell
2020-05-17 20:43:04 +02:00
parent 7247ad3093
commit 3b9f4a9a51
7 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#include "PluginInformation.h"
PluginInformation::PluginInformation(const PluginInformation& other) {
for (size_t i=0; i<other.hook_data_list.size(); i++){
hook_data_list.push_back(other.hook_data_list[i]);
}
for (size_t i=0; i<other.function_data_list.size(); i++){
function_data_list.push_back(other.function_data_list[i]);
}
for (size_t i=0; i<other.relocation_data_list.size(); i++){
relocation_data_list.push_back(other.relocation_data_list[i]);
}
section_info_list = other.section_info_list;
trampolinId = other.trampolinId;
allocatedTextMemoryAddress = other.allocatedTextMemoryAddress;
allocatedDataMemoryAddress = other.allocatedDataMemoryAddress;
}