Use setter instead of overloaded constructor

p4#: 21177
This commit is contained in:
Magne Sjaastad
2013-04-08 14:29:43 +02:00
parent fd67c9dc18
commit bd563df02e
3 changed files with 18 additions and 15 deletions

View File

@@ -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;
}