aboutsummaryrefslogtreecommitdiff
path: root/src/ui/mapper/style
diff options
context:
space:
mode:
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>();