peak of refactor

This commit is contained in:
MihailRis 2024-03-20 19:12:20 +03:00
parent e5fb9a9a23
commit 96b177858e

View File

@ -50,7 +50,7 @@ void UiDocument::collect(uinodes_map& map, std::shared_ptr<gui::UINode> node) {
if (!id.empty()) { if (!id.empty()) {
map[id] = node; map[id] = node;
} }
auto container = dynamic_cast<gui::Container*>(node.get()); auto container = std::dynamic_pointer_cast<gui::Container>(node);
if (container) { if (container) {
for (auto subnode : container->getNodes()) { for (auto subnode : container->getNodes()) {
collect(map, subnode); collect(map, subnode);