mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
A couple of example uses of cvf::make_ref
This commit is contained in:
parent
558bee72af
commit
69c21df6a3
@ -600,7 +600,7 @@ RiaApplication::ApplicationStatus RiaGuiApplication::handleArguments( gsl::not_n
|
||||
|
||||
if ( cvf::Option o = progOpt->option( "replaceCase" ) )
|
||||
{
|
||||
if ( projectModifier.isNull() ) projectModifier = new RiaProjectModifier;
|
||||
if ( projectModifier.isNull() ) projectModifier = cvf::make_ref<RiaProjectModifier>();
|
||||
|
||||
if ( o.valueCount() == 1 )
|
||||
{
|
||||
|
@ -198,7 +198,7 @@ void RiaRegressionTestRunner::runRegressionTest()
|
||||
cvf::ref<RiaProjectModifier> projectModifier;
|
||||
if ( regressionTestConfig.invalidateExternalFilePaths )
|
||||
{
|
||||
projectModifier = new RiaProjectModifier;
|
||||
projectModifier = cvf::make_ref<RiaProjectModifier>();
|
||||
projectModifier->setInvalidateExternalFilePaths();
|
||||
}
|
||||
logInfoTextWithTimeInSeconds( timeStamp, "Initializing test :" + testCaseFolder.absolutePath() );
|
||||
|
@ -76,7 +76,7 @@ caf::PdmScriptResponse RicfSingleCaseReplace::execute()
|
||||
projectPath = lastProjectPath;
|
||||
}
|
||||
|
||||
cvf::ref<RiaProjectModifier> projectModifier = new RiaProjectModifier;
|
||||
cvf::ref<RiaProjectModifier> projectModifier = cvf::make_ref<RiaProjectModifier>();
|
||||
|
||||
QString filePath = m_newGridFile();
|
||||
QFileInfo casePathInfo( filePath );
|
||||
@ -145,7 +145,7 @@ caf::PdmScriptResponse RicfMultiCaseReplace::execute()
|
||||
return caf::PdmScriptResponse( caf::PdmScriptResponse::COMMAND_ERROR, errMsg );
|
||||
}
|
||||
|
||||
cvf::ref<RiaProjectModifier> projectModifier = new RiaProjectModifier;
|
||||
cvf::ref<RiaProjectModifier> projectModifier = cvf::make_ref<RiaProjectModifier>();
|
||||
for ( const auto& a : m_caseIdToGridFileNameMap )
|
||||
{
|
||||
const int caseId = a.first;
|
||||
|
Loading…
Reference in New Issue
Block a user