3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-16 05:41:43 +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

@ -231,8 +231,8 @@ public:
m_ptr(ptr) {
}
scoped_ptr(scoped_ptr &&other) noexcept : m_ptr(nullptr) {
std::swap(m_ptr, other.m_ptr);
scoped_ptr(scoped_ptr &&other) noexcept : m_ptr(other.m_ptr) {
other.m_ptr = nullptr;
}
~scoped_ptr() {