Refactor: use const ref for input vector.

This commit is contained in:
Kristian Bendiksen
2025-03-12 13:35:35 +01:00
parent 7f22840ce3
commit 28f0d69df7
2 changed files with 2 additions and 2 deletions
@@ -99,7 +99,7 @@ std::vector<SimulationWellCellBranch>
///
//--------------------------------------------------------------------------------------------------
std::pair<std::vector<std::vector<cvf::Vec3d>>, std::vector<std::vector<RigWellResultPoint>>>
RigSimulationWellCenterLineCalculator::extractBranchData( const std::vector<SimulationWellCellBranch> simulationBranch )
RigSimulationWellCenterLineCalculator::extractBranchData( const std::vector<SimulationWellCellBranch>& simulationBranch )
{
std::vector<std::vector<cvf::Vec3d>> pipeBranchesCLCoords;
std::vector<std::vector<RigWellResultPoint>> pipeBranchesCellIds;
@@ -46,7 +46,7 @@ public:
bool useAllCellCenters );
static std::pair<std::vector<std::vector<cvf::Vec3d>>, std::vector<std::vector<RigWellResultPoint>>>
extractBranchData( const std::vector<SimulationWellCellBranch> simulationBranch );
extractBranchData( const std::vector<SimulationWellCellBranch>& simulationBranch );
private:
static void calculateWellPipeStaticCenterline( const RimSimWellInView* rimWell,