From 897713dda96cd3bd09db18b92d05ac5473d3572a Mon Sep 17 00:00:00 2001 From: Mark Olesen <Mark.Olesen@esi-group.com> Date: Wed, 23 Jan 2019 09:16:59 +0100 Subject: [PATCH] BUG: missing return value for PtrDynList::set --- src/OpenFOAM/containers/PtrLists/PtrDynList/PtrDynListI.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenFOAM/containers/PtrLists/PtrDynList/PtrDynListI.H b/src/OpenFOAM/containers/PtrLists/PtrDynList/PtrDynListI.H index 159068a43d5..82d9466c856 100644 --- a/src/OpenFOAM/containers/PtrLists/PtrDynList/PtrDynListI.H +++ b/src/OpenFOAM/containers/PtrLists/PtrDynList/PtrDynListI.H @@ -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()); } -- GitLab