From 3c8d5c8f732239a8b50418be27464e30b9dddeae Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 17 Oct 2025 08:37:30 +0800 Subject: Exception remove string. --- src/platform/graphics/Geometry.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/platform/graphics/Geometry.cpp') diff --git a/src/platform/graphics/Geometry.cpp b/src/platform/graphics/Geometry.cpp index b9503c4e..2c842a6e 100644 --- a/src/platform/graphics/Geometry.cpp +++ b/src/platform/graphics/Geometry.cpp @@ -15,9 +15,9 @@ bool IGeometry::StrokeContains(float width, const Point& point) { std::unique_ptr IGeometry::CreateStrokeGeometry( [[maybe_unused]] float width) { - throw PlatformUnsupportedException(GetPlatformId(), u"CreateStrokeGeometry", - u"Create stroke geometry of a geometry is " - u"not supported on this platform."); + throw PlatformUnsupportedException(GetPlatformIdUtf8(), "CreateStrokeGeometry", + "Create stroke geometry of a geometry is " + "not supported on this platform."); } void IGeometryBuilder::RelativeMoveTo(const Point& offset) { @@ -227,7 +227,7 @@ void IGeometryBuilder::ParseAndApplySvgPathData(StringView path_d) { auto read_number = [&] { if (read_spaces()) { - throw Exception(u"Unexpected eof of svg path data command."); + throw Exception("Unexpected eof of svg path data command."); } if (path_d[position] == ',') { @@ -239,7 +239,7 @@ void IGeometryBuilder::ParseAndApplySvgPathData(StringView path_d) { auto result = path_d.substr(position).ParseToFloat( &processed_count, StringToNumberFlags::kAllowTrailingJunk); - if (std::isnan(result)) throw Exception(u"Invalid svg path data number."); + if (std::isnan(result)) throw Exception("Invalid svg path data number."); position += processed_count; @@ -415,7 +415,7 @@ void IGeometryBuilder::ParseAndApplySvgPathData(StringView path_d) { CloseFigure(true); break; default: - throw Exception(u"Invalid svg path command."); + throw Exception("Invalid svg path command."); } return true; }; -- cgit v1.2.3