Added operator= for DSC

This commit is contained in:
korenkonder
2024-01-31 14:55:25 +03:00
parent 26325fab39
commit 0ec913edac
2 changed files with 11 additions and 0 deletions
+9
View File
@@ -3283,6 +3283,15 @@ bool dsc::load_file(void* data, const char* path, const char* file, uint32_t has
return ret;
}
dsc& dsc::operator=(const dsc& d) {
type = d.type;
signature = d.signature;
id = d.id;
data.assign(d.data.begin(), d.data.end());
data_buffer.assign(d.data_buffer.begin(), d.data_buffer.end());
return *this;
}
dsc_replace::dsc_replace(dsc_type src_type, dsc_type dst_type,
bool dst_has_perf_id) : src_type(DSC_FT), dst_type(DSC_FT), replace_data() {
+2
View File
@@ -309,6 +309,8 @@ struct dsc {
static int32_t calculate_target_flying_time(int32_t bpm, int32_t time_signature);
static bool load_file(void* data, const char* path, const char* file, uint32_t hash);
dsc& operator=(const dsc& d);
};
struct dsc_replace_data {