aboutsummaryrefslogtreecommitdiff
path: root/modules/cloak_custom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/cloak_custom.cpp')
-rw-r--r--modules/cloak_custom.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/cloak_custom.cpp b/modules/cloak_custom.cpp
index 1ca666797..70a68cf0b 100644
--- a/modules/cloak_custom.cpp
+++ b/modules/cloak_custom.cpp
@@ -67,9 +67,10 @@ public:
}
}
- std::string ToInternal(const Extensible* container, void* item) const noexcept override
+ std::string ToInternal(const Extensible* container, const ExtensionPtr& item) const noexcept override
{
- return item ? Percent::Encode(static_cast<Cloak::Info*>(item)->ToString()) : std::string();
+ const auto& cloak = std::static_pointer_cast<Cloak::Info>(item);
+ return cloak ? Percent::Encode(cloak->ToString()) : std::string();
}
};