From c77072d586bf7aca58e6465ceab3d11a0be0021f Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Mon, 15 Dec 2025 21:27:33 +0800 Subject: Clean up mapper codes. --- include/cru/ui/mapper/StringMapper.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'include/cru/ui/mapper/StringMapper.h') diff --git a/include/cru/ui/mapper/StringMapper.h b/include/cru/ui/mapper/StringMapper.h index e41ee0f9..63045eef 100644 --- a/include/cru/ui/mapper/StringMapper.h +++ b/include/cru/ui/mapper/StringMapper.h @@ -5,16 +5,7 @@ namespace cru::ui::mapper { class CRU_UI_API StringMapper : public BasicMapper { - public: - StringMapper(); - ~StringMapper(); - - public: - bool SupportMapFromString() override { return true; } - bool SupportMapFromXml() override { return true; } - - protected: - std::string DoMapFromString(std::string str) override; - std::string DoMapFromXml(xml::XmlElementNode* node) override; + CRU_UI_DECLARE_CAN_MAP_FROM_STRING(std::string) + CRU_UI_DECLARE_CAN_MAP_FROM_XML_ELEMENT_TAG(String, std::string) }; } // namespace cru::ui::mapper -- cgit v1.2.3