Use to_address instead of the unique_ptr::get function in ParseTree::findById
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
bee9917947
commit
5f3c8d785d
|
@ -62,7 +62,7 @@ public:
|
||||||
vector<T*> filteredComponents;
|
vector<T*> filteredComponents;
|
||||||
for_each(cbegin(), cend(), [&filteredComponents](const component_ptr& it) {
|
for_each(cbegin(), cend(), [&filteredComponents](const component_ptr& it) {
|
||||||
if (it->getId() == typeid(T)) {
|
if (it->getId() == typeid(T)) {
|
||||||
filteredComponents.push_back(dynamic_cast<T*>(it.get()));
|
filteredComponents.push_back(dynamic_cast<T*>(to_address(it)));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return filteredComponents;
|
return filteredComponents;
|
||||||
|
|
Loading…
Reference in New Issue