Simplify to two move constructors, just use the move assignment operator
This commit is contained in:
parent
ead3f128aa
commit
111f8e6aec
@ -555,9 +555,7 @@ namespace libdwarf {
|
||||
}
|
||||
srcfiles(const srcfiles&) = delete;
|
||||
srcfiles(srcfiles&& other) {
|
||||
std::swap(dbg, other.dbg);
|
||||
std::swap(dw_srcfiles, other.dw_srcfiles);
|
||||
std::swap(dw_filecount, other.dw_filecount);
|
||||
*this = std::move(other);
|
||||
}
|
||||
srcfiles& operator=(const srcfiles&) = delete;
|
||||
srcfiles& operator=(srcfiles&& other) {
|
||||
|
||||
@ -78,9 +78,7 @@ namespace libdwarf {
|
||||
}
|
||||
line_table_info(const line_table_info&) = delete;
|
||||
line_table_info(line_table_info&& other) {
|
||||
std::swap(version, other.version);
|
||||
std::swap(line_context, other.line_context);
|
||||
std::swap(line_entries, other.line_entries);
|
||||
*this = std::move(other);
|
||||
}
|
||||
line_table_info& operator=(const line_table_info&) = delete;
|
||||
line_table_info& operator=(line_table_info&& other) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user