1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:27:35 +00:00

LibGfx: Move a bunch of LogStream::operator<< to cpp files

This commit is contained in:
Andreas Kling 2020-02-15 00:58:14 +01:00
parent 3866e0d4d4
commit 34b5ff7c29
12 changed files with 162 additions and 28 deletions

View file

@ -24,6 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <AK/Forward.h>
#include <LibGfx/Point.h>
namespace Gfx {
@ -64,7 +65,7 @@ public:
return true;
}
String to_string() const { return String::format("(%s,%s,%s)", m_a.to_string().characters(), m_b.to_string().characters(), m_c.to_string().characters()); }
String to_string() const;
private:
int m_det;
@ -73,9 +74,6 @@ private:
Point m_c;
};
inline const LogStream& operator<<(const LogStream& stream, const Triangle& value)
{
return stream << value.to_string();
}
const LogStream& operator<<(const LogStream&, const Triangle&);
}