summaryrefslogtreecommitdiff
path: root/AK/OwnPtr.h
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2023-04-28 04:31:15 +0330
committerAndreas Kling <kling@serenityos.org>2023-04-28 05:56:04 +0200
commitd06057f88b6c6d8f629f93b097773b54bbc6ebd8 (patch)
tree00b30d42077e7a0a15ef19853e2e8b36ed57e795 /AK/OwnPtr.h
parent482f7f977573799dbbd7e88fb5f2df1eb19b8fae (diff)
downloadserenity-d06057f88b6c6d8f629f93b097773b54bbc6ebd8.zip
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.
Diffstat (limited to 'AK/OwnPtr.h')
-rw-r--r--AK/OwnPtr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/OwnPtr.h b/AK/OwnPtr.h
index e1c3e40d97..2ccb0c3f9a 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<typename U>
void swap(OwnPtr<U>& other)
{
- ::swap(m_ptr, other.m_ptr);
+ AK::swap(m_ptr, other.m_ptr);
}
static OwnPtr lift(T* ptr)