remove useless cast
This commit is contained in:
@@ -377,8 +377,7 @@ std::shared_ptr<Node> Node::load_template(const std::string& filename, const std
|
|||||||
LayoutManager m;
|
LayoutManager m;
|
||||||
std::shared_ptr<Node> ret;
|
std::shared_ptr<Node> ret;
|
||||||
if (m.load(filename.c_str()))
|
if (m.load(filename.c_str()))
|
||||||
ret = std::dynamic_pointer_cast<Node>(std::move(m.get_ref(name.c_str())->m_children[0]));
|
ret = std::move(m.get_ref(name.c_str())->m_children[0]);
|
||||||
m.unload();
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user