Some small refactoring. Preparing for Derived results

This commit is contained in:
Jacob Støren
2015-06-12 11:34:03 +02:00
parent c22119e6a3
commit bd67047f57
4 changed files with 17 additions and 15 deletions

View File

@@ -25,10 +25,9 @@
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RigFemScalarResultFrames::RigFemScalarResultFrames(const std::vector<std::string>& frameNames)
: m_frameNames(frameNames)
RigFemScalarResultFrames::RigFemScalarResultFrames(int frameCount)
{
m_dataForEachFrame.resize(m_frameNames.size());
m_dataForEachFrame.resize(frameCount);
}
//--------------------------------------------------------------------------------------------------
@@ -42,9 +41,9 @@ RigFemScalarResultFrames::~RigFemScalarResultFrames()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
size_t RigFemScalarResultFrames::frameCount()
int RigFemScalarResultFrames::frameCount()
{
return m_frameNames.size();
return static_cast<int>(m_dataForEachFrame.size());
}