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/ui/mapper/MapperRegistry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/mapper/MapperRegistry.cpp') diff --git a/src/ui/mapper/MapperRegistry.cpp b/src/ui/mapper/MapperRegistry.cpp index a542bfca..d877f14a 100644 --- a/src/ui/mapper/MapperRegistry.cpp +++ b/src/ui/mapper/MapperRegistry.cpp @@ -74,7 +74,7 @@ MapperRegistry::~MapperRegistry() { void MapperRegistry::RegisterMapper(MapperBase *mapper) { if (std::find(mapper_list_.cbegin(), mapper_list_.cend(), mapper) != mapper_list_.cend()) { - throw Exception(u"This mapper is already registered."); + throw Exception("This mapper is already registered."); } mapper_list_.push_back(mapper); @@ -83,7 +83,7 @@ void MapperRegistry::RegisterMapper(MapperBase *mapper) { void MapperRegistry::UnregisterMapper(MapperBase *mapper) { auto it = std::find(mapper_list_.begin(), mapper_list_.end(), mapper); if (it == mapper_list_.end()) { - throw Exception(u"This mapper is not registered."); + throw Exception("This mapper is not registered."); } mapper_list_.erase(it); -- cgit v1.2.3