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. --- include/cru/ui/mapper/Mapper.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/cru/ui/mapper') diff --git a/include/cru/ui/mapper/Mapper.h b/include/cru/ui/mapper/Mapper.h index 40e15186..d391fac3 100644 --- a/include/cru/ui/mapper/Mapper.h +++ b/include/cru/ui/mapper/Mapper.h @@ -66,7 +66,7 @@ class CRU_UI_API BasicMapper : public MapperBase { virtual T MapFromString(String str) { if (!SupportMapFromString()) { - throw Exception(u"This mapper does not support map from string."); + throw Exception("This mapper does not support map from string."); } return DoMapFromString(str); @@ -74,11 +74,11 @@ class CRU_UI_API BasicMapper : public MapperBase { T MapFromXml(xml::XmlElementNode* node) { if (!SupportMapFromXml()) { - throw Exception(u"This mapper does not support map from xml."); + throw Exception("This mapper does not support map from xml."); } if (!XmlElementIsOfThisType(node)) { - throw Exception(u"This xml element is not of mapping type."); + throw Exception("This xml element is not of mapping type."); } return DoMapFromXml(node); -- cgit v1.2.3