From 46d4838ac8ff1bd8658b57cf4ebb4438e396fce8 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 14 Sep 2021 22:10:02 +0800 Subject: ... --- include/cru/platform/GraphBase.hpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'include/cru/platform/GraphBase.hpp') diff --git a/include/cru/platform/GraphBase.hpp b/include/cru/platform/GraphBase.hpp index cc0ffcc7..2cfc9cc4 100644 --- a/include/cru/platform/GraphBase.hpp +++ b/include/cru/platform/GraphBase.hpp @@ -4,8 +4,8 @@ #include "Color.hpp" #include "cru/common/Format.hpp" #include "cru/common/Range.hpp" +#include "cru/common/String.hpp" -#include #include #include #include @@ -20,8 +20,8 @@ struct Point final { constexpr Point(const float x, const float y) : x(x), y(y) {} explicit constexpr Point(const Size& size); - std::u16string ToDebugString() const { - return fmt::format(u"({}, {})", ToUtf16String(x), ToUtf16String(y)); + String ToDebugString() const { + return Format(u"({}, {})", ToUtf16String(x), ToUtf16String(y)); } constexpr Point& operator+=(const Point& other) { @@ -62,9 +62,8 @@ struct Size final { std::numeric_limits::max()}; } - std::u16string ToDebugString() const { - return fmt::format(u"({}, {})", ToUtf16String(width), - ToUtf16String(height)); + String ToDebugString() const { + return Format(u"({}, {})", ToUtf16String(width), ToUtf16String(height)); } float width = 0; -- cgit v1.2.3