From d67d5ec3305dd8eda6f2053eb18cadbc60179990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rnar=20Grip=20Fj=C3=A6r?= Date: Fri, 19 May 2017 11:43:47 +0200 Subject: [PATCH] Fix error assigning return value to reference --- .../WellPathCommands/RicWellPathExportCompletionDataFeature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationCode/Commands/WellPathCommands/RicWellPathExportCompletionDataFeature.cpp b/ApplicationCode/Commands/WellPathCommands/RicWellPathExportCompletionDataFeature.cpp index ff3cbed1d9..a04197f861 100644 --- a/ApplicationCode/Commands/WellPathCommands/RicWellPathExportCompletionDataFeature.cpp +++ b/ApplicationCode/Commands/WellPathCommands/RicWellPathExportCompletionDataFeature.cpp @@ -519,7 +519,7 @@ void RicWellPathExportCompletionDataFeature::computeWellSegments(RifEclipseOutpu formatter.comment(QString("%1 : Sub index %2 - Lateral %3").arg(location.fishbonesSubs->name()).arg(location.subIndex).arg(lateral.lateralIndex)); lateral.branchNumber = ++branchNum; - std::vector& coords = location.fishbonesSubs->coordsForLateral(location.subIndex, lateral.lateralIndex); + std::vector coords = location.fishbonesSubs->coordsForLateral(location.subIndex, lateral.lateralIndex); std::vector intersections = findIntersections(caseToApply->eclipseCaseData(), coords); filterIntersections(&intersections);