Skip to content
Snippets Groups Projects
Commit a0d82c38 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

hotfix: still a bug

parent b7fa19f0
No related branches found
No related tags found
1 merge request!466devel->main
Pipeline #12657 canceled
...@@ -294,7 +294,7 @@ inline std::shared_ptr<const C> FrameBase::getCaptureOfType() const ...@@ -294,7 +294,7 @@ inline std::shared_ptr<const C> FrameBase::getCaptureOfType() const
{ {
for (auto capture_ptr : getCaptureList()) for (auto capture_ptr : getCaptureList())
{ {
auto cap_derived = std::dynamic_pointer_cast<C>(capture_ptr); auto cap_derived = std::dynamic_pointer_cast<const C>(capture_ptr);
if (cap_derived) if (cap_derived)
return cap_derived; return cap_derived;
} }
...@@ -319,7 +319,7 @@ inline std::list<std::shared_ptr<const C>> FrameBase::getCapturesOfType() const ...@@ -319,7 +319,7 @@ inline std::list<std::shared_ptr<const C>> FrameBase::getCapturesOfType() const
std::list<std::shared_ptr<const C>> captures; std::list<std::shared_ptr<const C>> captures;
for (auto capture_ptr : getCaptureList()) for (auto capture_ptr : getCaptureList())
{ {
auto cap_derived = std::dynamic_pointer_cast<C>(capture_ptr); auto cap_derived = std::dynamic_pointer_cast<const C>(capture_ptr);
if (cap_derived) if (cap_derived)
captures.push_back(cap_derived); captures.push_back(cap_derived);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment