mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use setter instead of overloaded constructor
p4#: 21177
This commit is contained in:
@@ -43,17 +43,6 @@ RimResultCase::RimResultCase()
|
||||
CAF_PDM_InitField(&caseDirectory, "CaseFolder", QString(), "Directory", "", "" ,"");
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimResultCase::RimResultCase(const QString& caseName, const QString& caseFileName, const QString& caseDirectory)
|
||||
{
|
||||
RimResultCase();
|
||||
|
||||
this->caseName = caseName;
|
||||
this->caseFileName = caseFileName;
|
||||
this->caseDirectory = caseDirectory;
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -308,3 +297,13 @@ void RimResultCase::updateFilePathsFromProjectPath(const QString& projectPath)
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimResultCase::setCaseInfo(const QString& caseName, const QString& caseFileName, const QString& caseDirectory)
|
||||
{
|
||||
this->caseName = caseName;
|
||||
this->caseFileName = caseFileName;
|
||||
this->caseDirectory = caseDirectory;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user