diff --git a/AK/FixedArray.h b/AK/FixedArray.h index 0eb8a22c74c..ac60f4052c2 100644 --- a/AK/FixedArray.h +++ b/AK/FixedArray.h @@ -142,7 +142,7 @@ public: void swap(FixedArray& other) { - ::swap(m_storage, other.m_storage); + AK::swap(m_storage, other.m_storage); } void fill_with(T const& value) diff --git a/AK/NonnullOwnPtr.h b/AK/NonnullOwnPtr.h index 4c73a246eb6..8dd798c22de 100644 --- a/AK/NonnullOwnPtr.h +++ b/AK/NonnullOwnPtr.h @@ -110,13 +110,13 @@ public: void swap(NonnullOwnPtr& other) { - ::swap(m_ptr, other.m_ptr); + AK::swap(m_ptr, other.m_ptr); } template void swap(NonnullOwnPtr& other) { - ::swap(m_ptr, other.m_ptr); + AK::swap(m_ptr, other.m_ptr); } template diff --git a/AK/OwnPtr.h b/AK/OwnPtr.h index e1c3e40d97e..2ccb0c3f9a6 100644 --- a/AK/OwnPtr.h +++ b/AK/OwnPtr.h @@ -152,13 +152,13 @@ public: void swap(OwnPtr& other) { - ::swap(m_ptr, other.m_ptr); + AK::swap(m_ptr, other.m_ptr); } template void swap(OwnPtr& other) { - ::swap(m_ptr, other.m_ptr); + AK::swap(m_ptr, other.m_ptr); } static OwnPtr lift(T* ptr)