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:
parent
56db8d5e98
commit
c0be7ac621
8 changed files with 17 additions and 24 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue