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:
Username404 2022-03-17 16:42:28 +01:00
parent bee9917947
commit 5f3c8d785d
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public:
vector<T*> filteredComponents;
for_each(cbegin(), cend(), [&filteredComponents](const component_ptr& it) {
if (it->getId() == typeid(T)) {
filteredComponents.push_back(dynamic_cast<T*>(it.get()));
filteredComponents.push_back(dynamic_cast<T*>(to_address(it)));
}
});
return filteredComponents;