From f740a34b898aeb10a4acfba036fda366471f4419 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 13 Jan 2021 21:02:40 +0100 Subject: [PATCH] Imediately return --- inferno/src/inferno/scene/components.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/inferno/src/inferno/scene/components.cpp b/inferno/src/inferno/scene/components.cpp index 67ae04c..10ae551 100644 --- a/inferno/src/inferno/scene/components.cpp +++ b/inferno/src/inferno/scene/components.cpp @@ -4,16 +4,14 @@ namespace Inferno { const LogStream& operator<<(const LogStream& stream, const glm::vec3& value) { - stream << "{ " << value.x << ", " << value.y << ", " << value.z << " }"; - return stream; + return stream << "{ " << value.x << ", " << value.y << ", " << value.z << " }"; } const LogStream& operator<<(const LogStream& stream, const glm::mat4& value) { - stream << "mat4 " - << value[0] << "\n " << value[1] << "\n " - << value[2] << "\n " << value[3]; - return stream; + return stream << "mat4 " + << value[0] << "\n " << value[1] << "\n " + << value[2] << "\n " << value[3]; } const LogStream& operator<<(const LogStream& stream, const TransformComponent& value)