summaryrefslogtreecommitdiff
path: root/Libraries/LibGfx/Rect.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-15 00:58:14 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-15 00:58:54 +0100
commit34b5ff7c29fbd9f72922710042577aa0d906592b (patch)
tree8872d43134202f5c5f66163f9c13c9bae57f0535 /Libraries/LibGfx/Rect.h
parent3866e0d4d4026a58e2577f6651e8796182d16a0e (diff)
downloadserenity-34b5ff7c29fbd9f72922710042577aa0d906592b.zip
LibGfx: Move a bunch of LogStream::operator<< to cpp files
Diffstat (limited to 'Libraries/LibGfx/Rect.h')
-rw-r--r--Libraries/LibGfx/Rect.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/Libraries/LibGfx/Rect.h b/Libraries/LibGfx/Rect.h
index 103df2b8ec..968208516f 100644
--- a/Libraries/LibGfx/Rect.h
+++ b/Libraries/LibGfx/Rect.h
@@ -26,8 +26,7 @@
#pragma once
-#include <AK/LogStream.h>
-#include <AK/String.h>
+#include <AK/Forward.h>
#include <LibGfx/Orientation.h>
#include <LibGfx/Point.h>
#include <LibGfx/Size.h>
@@ -313,7 +312,7 @@ public:
set_y(other.center().y() - height() / 2);
}
- String to_string() const { return String::format("[%d,%d %dx%d]", x(), y(), width(), height()); }
+ String to_string() const;
private:
Point m_location;
@@ -332,9 +331,6 @@ inline void Point::constrain(const Rect& rect)
set_y(rect.bottom());
}
-inline const LogStream& operator<<(const LogStream& stream, const Rect& value)
-{
- return stream << value.to_string();
-}
+const LogStream& operator<<(const LogStream&, const Rect&);
}