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

hotfix: bug fixed

parent 4e479b05
No related branches found
No related tags found
1 merge request!466devel->main
Pipeline #12655 passed
......@@ -296,7 +296,7 @@ inline std::shared_ptr<const C> FrameBase::getCaptureOfType() const
{
auto cap_derived = std::dynamic_pointer_cast<C>(capture_ptr);
if (cap_derived)
return capture_ptr;
return cap_derived;
}
return nullptr;
}
......@@ -308,7 +308,7 @@ inline std::shared_ptr<C> FrameBase::getCaptureOfType()
{
auto cap_derived = std::dynamic_pointer_cast<C>(capture_ptr);
if (cap_derived)
return capture_ptr;
return cap_derived;
}
return nullptr;
}
......@@ -321,7 +321,7 @@ inline std::list<std::shared_ptr<const C>> FrameBase::getCapturesOfType() const
{
auto cap_derived = std::dynamic_pointer_cast<C>(capture_ptr);
if (cap_derived)
captures.push_back(capture_ptr);
captures.push_back(cap_derived);
}
return captures;
}
......@@ -334,7 +334,7 @@ inline std::list<std::shared_ptr<C>> FrameBase::getCapturesOfType()
{
auto cap_derived = std::dynamic_pointer_cast<C>(capture_ptr);
if (cap_derived)
captures.push_back(capture_ptr);
captures.push_back(cap_derived);
}
return captures;
}
......
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