From a1b5e5b4f43a56f8caee90d45e2151a1bded6f21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Sun, 21 Nov 2021 19:06:33 +0100 Subject: [PATCH] Math/Vector3: Fix ToString() --- include/Nazara/Math/Vector3.inl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/Nazara/Math/Vector3.inl b/include/Nazara/Math/Vector3.inl index be6a5d77f..2e00e0d1a 100644 --- a/include/Nazara/Math/Vector3.inl +++ b/include/Nazara/Math/Vector3.inl @@ -7,7 +7,6 @@ #include #include #include -#include #include #include @@ -576,10 +575,7 @@ namespace Nz template std::string Vector3::ToString() const { - std::ostringstream ss; - ss << *this; - - return ss.str(); + return "Vector3(" + std::to_string(x) + ", " + std::to_string(y) + ", " + std::to_string(z) + ')'; } /*!