aboutsummaryrefslogtreecommitdiff
path: root/src/ui/mapper/style
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-03-05 23:24:15 +0800
committercrupest <crupest@outlook.com>2022-03-05 23:24:15 +0800
commit1ddea64a948eca27f17a99f8601d737636be872b (patch)
treedd2bafa9385dc8a9e9c14872a7afc98f529038bd /src/ui/mapper/style
parent7697f1ca3904301e551e7500089b30034e84eb32 (diff)
downloadcru-1ddea64a948eca27f17a99f8601d737636be872b.tar.gz
cru-1ddea64a948eca27f17a99f8601d737636be872b.tar.bz2
cru-1ddea64a948eca27f17a99f8601d737636be872b.zip
...
Diffstat (limited to 'src/ui/mapper/style')
-rw-r--r--src/ui/mapper/style/CursorStylerMapper.cpp2
-rw-r--r--src/ui/mapper/style/StyleRuleSetMapper.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/mapper/style/CursorStylerMapper.cpp b/src/ui/mapper/style/CursorStylerMapper.cpp
index 103d9d82..6798798c 100644
--- a/src/ui/mapper/style/CursorStylerMapper.cpp
+++ b/src/ui/mapper/style/CursorStylerMapper.cpp
@@ -12,7 +12,7 @@ bool CursorStylerMapper::XmlElementIsOfThisType(xml::XmlElementNode* node) {
ClonablePtr<ui::style::CursorStyler> CursorStylerMapper::DoMapFromXml(
xml::XmlElementNode* node) {
auto cursor_mapper =
- MapperRegistry::GetInstance()->GetRefMapper<platform::gui::ICursor>();
+ MapperRegistry::GetInstance()->GetSharedPtrMapper<platform::gui::ICursor>();
std::shared_ptr<platform::gui::ICursor> cursor;
for (auto child : node->GetChildren()) {
diff --git a/src/ui/mapper/style/StyleRuleSetMapper.cpp b/src/ui/mapper/style/StyleRuleSetMapper.cpp
index 7552e25f..d014edc7 100644
--- a/src/ui/mapper/style/StyleRuleSetMapper.cpp
+++ b/src/ui/mapper/style/StyleRuleSetMapper.cpp
@@ -14,7 +14,7 @@ bool StyleRuleSetMapper::XmlElementIsOfThisType(xml::XmlElementNode* node) {
std::shared_ptr<ui::style::StyleRuleSet> StyleRuleSetMapper::DoMapFromXml(
xml::XmlElementNode* node) {
auto style_rule_mapper =
- MapperRegistry::GetInstance()->GetPtrMapper<StyleRule>();
+ MapperRegistry::GetInstance()->GetClonablePtrMapper<StyleRule>();
auto result = std::make_shared<StyleRuleSet>();