Commit 51bac480 authored by Mark Olesen's avatar Mark Olesen
Browse files

BUG: missing return value for PtrDynList::set

parent efb4c6e7
......@@ -272,7 +272,7 @@ inline Foam::autoPtr<T> Foam::PtrDynList<T, SizeMin>::set
const autoPtr<T>& aptr
)
{
this->set(i, const_cast<autoPtr<T>&>(aptr).release());
return this->set(i, const_cast<autoPtr<T>&>(aptr).release());
}
......@@ -283,7 +283,7 @@ inline Foam::autoPtr<T> Foam::PtrDynList<T, SizeMin>::set
const tmp<T>& tptr
)
{
this->set(i, tptr.ptr());
return this->set(i, tptr.ptr());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment