mirror of
https://github.com/Z3Prover/z3
synced 2026-03-17 18:43:45 +00:00
Remove unused swap() methods (#8538)
This commit is contained in:
parent
56db8d5e98
commit
c0be7ac621
8 changed files with 17 additions and 24 deletions
|
|
@ -165,8 +165,8 @@ public:
|
|||
SASSERT(size() == source.size());
|
||||
}
|
||||
|
||||
vector(vector&& other) noexcept {
|
||||
std::swap(m_data, other.m_data);
|
||||
vector(vector&& other) noexcept : m_data(other.m_data) {
|
||||
other.m_data = nullptr;
|
||||
}
|
||||
|
||||
vector(SZ s, T const * data) {
|
||||
|
|
@ -225,8 +225,8 @@ public:
|
|||
return *this;
|
||||
}
|
||||
destroy();
|
||||
m_data = nullptr;
|
||||
std::swap(m_data, source.m_data);
|
||||
m_data = source.m_data;
|
||||
source.m_data = nullptr;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue