Skip to content

Commit

Permalink
Rename to other for copy and move
Browse files Browse the repository at this point in the history
  • Loading branch information
redorav committed Oct 3, 2024
1 parent 597fa4d commit 716fbc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/crstl/intrusive_ptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ crstl_module_export namespace crstl
}
}

intrusive_ptr(const intrusive_ptr<T>& ptr) crstl_noexcept : m_ptr(ptr.m_ptr)
intrusive_ptr(const intrusive_ptr<T>& other) crstl_noexcept : m_ptr(other.m_ptr)
{
if (m_ptr != nullptr)
{
intrusive_ptr_add_ref(m_ptr);
}
}

intrusive_ptr(intrusive_ptr<T>&& ptr) crstl_noexcept : m_ptr(ptr.m_ptr)
intrusive_ptr(intrusive_ptr<T>&& other) crstl_noexcept : m_ptr(other.m_ptr)
{
ptr.m_ptr = nullptr;
other.m_ptr = nullptr;
}

~intrusive_ptr() crstl_noexcept
Expand Down

0 comments on commit 716fbc1

Please sign in to comment.