3
0
Fork 0
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:
Copilot 2026-02-08 18:53:43 +00:00 committed by GitHub
parent 56db8d5e98
commit c0be7ac621
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 17 additions and 24 deletions

View file

@ -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;
}