diff options
Diffstat (limited to 'include/cru/ui/mapper')
-rw-r--r-- | include/cru/ui/mapper/Mapper.h | 4 | ||||
-rw-r--r-- | include/cru/ui/mapper/StringMapper.h | 2 |
2 files changed, 4 insertions, 2 deletions
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<String> allowed_tags) { + void SetAllowedTags(std::vector<std::string> allowed_tags) { allowed_tags_ = std::move(allowed_tags); } private: std::type_index type_index_; - std::vector<String> allowed_tags_; + std::vector<std::string> allowed_tags_; }; template <typename T> 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 <cru/base/String.h> + namespace cru::ui::mapper { class CRU_UI_API StringMapper : public BasicMapper<String> { public: |