#3433 Fracture header : Simplify interface to ReportItems

This commit is contained in:
Magne Sjaastad
2018-10-04 15:02:15 +02:00
parent f23fa64235
commit 927e65cb44
4 changed files with 32 additions and 30 deletions

View File

@@ -626,12 +626,9 @@ QString RicWellPathFractureTextReportFeatureImpl::createFractureCompletionSummar
for (const auto& reportItem : wellPathFractureReportItems)
{
QString wellPathName, fractureName, fractureTemplateName;
reportItem.getNames(wellPathName, fractureName, fractureTemplateName);
formatter.add(wellPathName);
formatter.add(fractureName);
formatter.add(fractureTemplateName);
formatter.add(reportItem.wellPathNameForExport());
formatter.add(reportItem.fractureName());
formatter.add(reportItem.fractureTemplateName());
formatter.add(reportItem.transmissibility());
formatter.add(reportItem.connectionCount());
@@ -676,8 +673,7 @@ QString RicWellPathFractureTextReportFeatureImpl::createConnectionsPerWellText(c
std::map<QString /*Well*/, size_t> wellConnectionCounts;
for (const auto& reportItem : wellPathFractureReportItems)
{
QString wellPathName, fractureName, fractureTemplateName;
reportItem.getNames(wellPathName, fractureName, fractureTemplateName);
QString wellPathName = reportItem.wellPathNameForExport();
if (wellConnectionCounts.find(wellPathName) == wellConnectionCounts.end())
{
wellConnectionCounts.insert(std::make_pair(wellPathName, 0));