From 20123151d12a0b01453ab6a36c84e4d3e5ea9504 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Sun, 7 Sep 2025 03:34:56 +0800 Subject: Remove some usage of my format. --- include/cru/platform/GraphicsBase.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/cru/platform/GraphicsBase.h') diff --git a/include/cru/platform/GraphicsBase.h b/include/cru/platform/GraphicsBase.h index 4837b08b..3d131e22 100644 --- a/include/cru/platform/GraphicsBase.h +++ b/include/cru/platform/GraphicsBase.h @@ -1,10 +1,10 @@ #pragma once #include "Base.h" -#include "cru/base/Format.h" #include "cru/base/Range.h" #include "cru/base/String.h" +#include #include namespace cru::platform { @@ -44,7 +44,7 @@ constexpr bool operator!=(const Point& left, const Point& right) { } inline String ToString(const Point& point) { - return Format(u"(x: {}, y: {})", point.x, point.y); + return String::FromUtf8(std::format("(x: {}, y: {})", point.x, point.y)); } struct CRU_PLATFORM_API Size final { @@ -85,7 +85,8 @@ constexpr bool operator!=(const Size& left, const Size& right) { } inline String ToString(const Size& size) { - return Format(u"(width: {}, height: {})", size.width, size.height); + return String::FromUtf8( + std::format("(width: {}, height: {})", size.width, size.height)); } struct Thickness final { -- cgit v1.2.3