mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 14:40:26 -05:00
Use unique_ptr for data loaders.
This commit is contained in:
1 parent
76a1d43b0e
commit
6e3e0ad538
3 files changed
+14
-16
No files matched your search
@@ -1755,15 +1755,15 @@ void RiaApplication::initializeDataLoadController()
|
||||
const QString wellPathGeometryKeyword = "WELL_PATH_GEOMETRY";
|
||||
dataLoadController->registerDataLoader( RimFileWellPath::classKeywordStatic(),
|
||||
wellPathGeometryKeyword,
|
||||
std::make_shared<RimFileWellPathDataLoader>() );
|
||||
std::make_unique<RimFileWellPathDataLoader>() );
|
||||
dataLoadController->registerDataLoader( RimOsduWellPath::classKeywordStatic(),
|
||||
wellPathGeometryKeyword,
|
||||
std::make_shared<RimOsduWellPathDataLoader>() );
|
||||
std::make_unique<RimOsduWellPathDataLoader>() );
|
||||
dataLoadController->registerDataLoader( RimModeledWellPath::classKeywordStatic(),
|
||||
wellPathGeometryKeyword,
|
||||
std::make_shared<RimModeledWellPathDataLoader>() );
|
||||
std::make_unique<RimModeledWellPathDataLoader>() );
|
||||
|
||||
const QString wellLogKeyword = "WELL_LOG";
|
||||
dataLoadController->registerDataLoader( RimWellLogFile::classKeywordStatic(), wellLogKeyword, std::make_shared<RimWellLogFileDataLoader>() );
|
||||
dataLoadController->registerDataLoader( RimOsduWellLog::classKeywordStatic(), wellLogKeyword, std::make_shared<RimOsduWellLogDataLoader>() );
|
||||
dataLoadController->registerDataLoader( RimWellLogFile::classKeywordStatic(), wellLogKeyword, std::make_unique<RimWellLogFileDataLoader>() );
|
||||
dataLoadController->registerDataLoader( RimOsduWellLog::classKeywordStatic(), wellLogKeyword, std::make_unique<RimOsduWellLogDataLoader>() );
|
||||
}
|
||||
Reference in new issue
Block a user