diff options
Diffstat (limited to 'Libraries/LibGfx/Rect.h')
-rw-r--r-- | Libraries/LibGfx/Rect.h | 10 |
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&); } |