From 856df14d749014f11a583ade2fee988b076754cc Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 14 Oct 2023 22:48:16 +0800 Subject: Re-think about ToString. ToString for a class should lies in the same namespace of the class. Argument-dependent name lookup will help make Format work. The problem is it will hide ToString at parent namespace. But if you call ToString explicitly, it's you duty to use the ToString in correct namespace. --- src/platform/graphics/SvgGeometryBuilderMixin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/platform/graphics/SvgGeometryBuilderMixin.cpp') diff --git a/src/platform/graphics/SvgGeometryBuilderMixin.cpp b/src/platform/graphics/SvgGeometryBuilderMixin.cpp index 1f868f44..3f8b48ad 100644 --- a/src/platform/graphics/SvgGeometryBuilderMixin.cpp +++ b/src/platform/graphics/SvgGeometryBuilderMixin.cpp @@ -108,14 +108,14 @@ void SvgGeometryBuilderMixin::Append(bool flag) { } void SvgGeometryBuilderMixin::Append(float number) { - current_ += ToString(number); + current_ += cru::ToString(number); current_ += u' '; } void SvgGeometryBuilderMixin::Append(const Point& point) { - current_ += ToString(point.x); + current_ += cru::ToString(point.x); current_ += u','; - current_ += ToString(point.y); + current_ += cru::ToString(point.y); current_ += u' '; } } // namespace cru::platform::graphics -- cgit v1.2.3