From 32aa6f116acc6e3e20a1ec76cef45b29f7005ad7 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 17 Oct 2025 12:06:14 +0800 Subject: Remove String stage 1. --- include/cru/ui/mapper/Mapper.h | 4 ++-- include/cru/ui/mapper/StringMapper.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include/cru/ui/mapper') diff --git a/include/cru/ui/mapper/Mapper.h b/include/cru/ui/mapper/Mapper.h index f7467120..709288f5 100644 --- a/include/cru/ui/mapper/Mapper.h +++ b/include/cru/ui/mapper/Mapper.h @@ -41,14 +41,14 @@ class CRU_UI_API MapperBase : public Object { virtual bool XmlElementIsOfThisType(xml::XmlElementNode* node); protected: - void SetAllowedTags(std::vector allowed_tags) { + void SetAllowedTags(std::vector allowed_tags) { allowed_tags_ = std::move(allowed_tags); } private: std::type_index type_index_; - std::vector allowed_tags_; + std::vector allowed_tags_; }; template diff --git a/include/cru/ui/mapper/StringMapper.h b/include/cru/ui/mapper/StringMapper.h index bfb7314b..01f58c77 100644 --- a/include/cru/ui/mapper/StringMapper.h +++ b/include/cru/ui/mapper/StringMapper.h @@ -1,6 +1,8 @@ #pragma once #include "Mapper.h" +#include + namespace cru::ui::mapper { class CRU_UI_API StringMapper : public BasicMapper { public: -- cgit v1.2.3