From 46d4838ac8ff1bd8658b57cf4ebb4438e396fce8 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 14 Sep 2021 22:10:02 +0800 Subject: ... --- include/cru/ui/render/MeasureRequirement.hpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'include/cru/ui/render') diff --git a/include/cru/ui/render/MeasureRequirement.hpp b/include/cru/ui/render/MeasureRequirement.hpp index 6a0c6952..ff9dd6e3 100644 --- a/include/cru/ui/render/MeasureRequirement.hpp +++ b/include/cru/ui/render/MeasureRequirement.hpp @@ -1,9 +1,8 @@ #pragma once #include "Base.hpp" -#include "cru/common/Format.hpp" +#include "cru/common/String.hpp" -#include #include #include #include @@ -169,9 +168,8 @@ struct MeasureSize { }; } - std::u16string ToDebugString() const { - return fmt::format(u"({}, {})", width.ToDebugString(), - height.ToDebugString()); + String ToDebugString() const { + return Format(u"({}, {})", width.ToDebugString(), height.ToDebugString()); } constexpr static MeasureSize NotSpecified() { @@ -240,9 +238,9 @@ struct MeasureRequirement { return result; } - std::u16string ToDebugString() const { - return fmt::format(u"{{min: {}, max: {}}}", min.ToDebugString(), - max.ToDebugString()); + String ToDebugString() const { + return Format(u"{{min: {}, max: {}}}", min.ToDebugString(), + max.ToDebugString()); } constexpr static MeasureRequirement Merge(const MeasureRequirement& left, -- cgit v1.2.3