From f99bdb60782ea56a65fde7cd8526ab2727a028b8 Mon Sep 17 00:00:00 2001 From: dsa-t Date: Thu, 8 Dec 2022 05:04:41 +0000 Subject: [PATCH] Revert "Minor header cleanup." This reverts commit 4277b25a0be07f0a8375c72a247b5ec60db01e84 --- libs/kimath/include/math/vector2d.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libs/kimath/include/math/vector2d.h b/libs/kimath/include/math/vector2d.h index 14c2e22f66..d3349b31d8 100644 --- a/libs/kimath/include/math/vector2d.h +++ b/libs/kimath/include/math/vector2d.h @@ -29,8 +29,8 @@ #define VECTOR2D_H_ #include -#include -#include +#include +#include #include #include @@ -407,7 +407,11 @@ VECTOR2 VECTOR2::Resize( T aNewLength ) const template const std::string VECTOR2::Format() const { - return std::string( "( xy " ) + std::to_string( x ) + " " + std::to_string( y ) + " )"; + std::stringstream ss; + + ss << "( xy " << x << " " << y << " )"; + + return ss.str(); }