return a copy of the intersection to avoid passing reference to a temporary object

This commit is contained in:
Tor Harald Sandve 2021-01-18 09:00:14 +01:00
parent 1b4f0cf2c5
commit 5bdccf43d7

View File

@ -252,7 +252,7 @@ public:
*
* \param boundaryFaceIdx The local index of the boundary segment
*/
const Intersection& intersection(unsigned boundaryFaceIdx OPM_UNUSED) const
const Intersection intersection(unsigned boundaryFaceIdx OPM_UNUSED) const
{ return *intersectionIt_; }
/*!