mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-11 15:05:34 -06:00
return a copy of the intersection to avoid passing reference to a temporary object
This commit is contained in:
parent
1b4f0cf2c5
commit
5bdccf43d7
@ -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_; }
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user