From 528d8d49dc975e3ff31b53fadd045963a42ab754 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 23 Jul 2019 14:56:17 +0200 Subject: [PATCH] LibDraw: Add LogStream operator<< overload for Color. --- Libraries/LibDraw/Color.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Libraries/LibDraw/Color.h b/Libraries/LibDraw/Color.h index ff2090ff04..d6c86e35a8 100644 --- a/Libraries/LibDraw/Color.h +++ b/Libraries/LibDraw/Color.h @@ -141,3 +141,8 @@ private: RGBA32 m_value { 0 }; }; + +inline const LogStream& operator<<(const LogStream& stream, Color value) +{ + return stream << value.to_string(); +}