1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

AK: Don't refer to AK::swap() as ::swap()

While swap() is available in the global namespace in normal conditions,
!USING_AK_GLOBALLY will make this name unavailable in the global
namespace, making these calls fail to compile.
This commit is contained in:
Ali Mohammad Pur 2023-04-28 04:31:15 +03:30 committed by Andreas Kling
parent 482f7f9775
commit d06057f88b
3 changed files with 5 additions and 5 deletions

View file

@ -110,13 +110,13 @@ public:
void swap(NonnullOwnPtr& other)
{
::swap(m_ptr, other.m_ptr);
AK::swap(m_ptr, other.m_ptr);
}
template<typename U>
void swap(NonnullOwnPtr<U>& other)
{
::swap(m_ptr, other.m_ptr);
AK::swap(m_ptr, other.m_ptr);
}
template<typename U>