mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-09 05:00:46 +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:
parent
482f7f9775
commit
d06057f88b
|
@ -142,7 +142,7 @@ public:
|
||||||
|
|
||||||
void swap(FixedArray<T>& other)
|
void swap(FixedArray<T>& other)
|
||||||
{
|
{
|
||||||
::swap(m_storage, other.m_storage);
|
AK::swap(m_storage, other.m_storage);
|
||||||
}
|
}
|
||||||
|
|
||||||
void fill_with(T const& value)
|
void fill_with(T const& value)
|
||||||
|
|
|
@ -110,13 +110,13 @@ public:
|
||||||
|
|
||||||
void swap(NonnullOwnPtr& other)
|
void swap(NonnullOwnPtr& other)
|
||||||
{
|
{
|
||||||
::swap(m_ptr, other.m_ptr);
|
AK::swap(m_ptr, other.m_ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
void swap(NonnullOwnPtr<U>& other)
|
void swap(NonnullOwnPtr<U>& other)
|
||||||
{
|
{
|
||||||
::swap(m_ptr, other.m_ptr);
|
AK::swap(m_ptr, other.m_ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
|
|
|
@ -152,13 +152,13 @@ public:
|
||||||
|
|
||||||
void swap(OwnPtr& other)
|
void swap(OwnPtr& other)
|
||||||
{
|
{
|
||||||
::swap(m_ptr, other.m_ptr);
|
AK::swap(m_ptr, other.m_ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
void swap(OwnPtr<U>& other)
|
void swap(OwnPtr<U>& other)
|
||||||
{
|
{
|
||||||
::swap(m_ptr, other.m_ptr);
|
AK::swap(m_ptr, other.m_ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static OwnPtr lift(T* ptr)
|
static OwnPtr lift(T* ptr)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user