summaryrefslogtreecommitdiff
path: root/Libraries/LibGfx
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-06 13:02:38 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-06 13:02:38 +0100
commit20cfd2a6bff8c469970651dd73ffee60ab0e5176 (patch)
tree4f92b38ae97fb0add184ccae97d679f484ef1a49 /Libraries/LibGfx
parentc39d44fc2ef0d2e5435524c5b96b5a367df2438b (diff)
downloadserenity-20cfd2a6bff8c469970651dd73ffee60ab0e5176.zip
LibGfx: Unpublish Gfx::Rect from global namespace
Diffstat (limited to 'Libraries/LibGfx')
-rw-r--r--Libraries/LibGfx/Rect.cpp4
-rw-r--r--Libraries/LibGfx/Rect.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/Libraries/LibGfx/Rect.cpp b/Libraries/LibGfx/Rect.cpp
index 45b47a1549..bff5d90ae3 100644
--- a/Libraries/LibGfx/Rect.cpp
+++ b/Libraries/LibGfx/Rect.cpp
@@ -27,6 +27,8 @@
#include "Rect.h"
#include <AK/StdLibExtras.h>
+namespace Gfx {
+
void Rect::intersect(const Rect& other)
{
int l = max(left(), other.left());
@@ -126,3 +128,5 @@ void Rect::align_within(const Rect& other, TextAlignment alignment)
return;
}
}
+
+}
diff --git a/Libraries/LibGfx/Rect.h b/Libraries/LibGfx/Rect.h
index 29fbba03fa..2fa67c3c31 100644
--- a/Libraries/LibGfx/Rect.h
+++ b/Libraries/LibGfx/Rect.h
@@ -333,5 +333,3 @@ inline const LogStream& operator<<(const LogStream& stream, const Rect& value)
}
}
-
-using Gfx::Rect;