Const.
This commit is contained in:
@@ -51,7 +51,7 @@ void ThemeMetricDifficultiesToShow::Read()
|
||||
m_v.push_back( d );
|
||||
}
|
||||
}
|
||||
const vector<Difficulty>& ThemeMetricDifficultiesToShow::GetValue() { return m_v; }
|
||||
const vector<Difficulty>& ThemeMetricDifficultiesToShow::GetValue() const { return m_v; }
|
||||
|
||||
|
||||
ThemeMetricCourseDifficultiesToShow::ThemeMetricCourseDifficultiesToShow( const RString& sGroup, const RString& sName ) :
|
||||
@@ -81,7 +81,7 @@ void ThemeMetricCourseDifficultiesToShow::Read()
|
||||
m_v.push_back( d );
|
||||
}
|
||||
}
|
||||
const vector<CourseDifficulty>& ThemeMetricCourseDifficultiesToShow::GetValue() { return m_v; }
|
||||
const vector<CourseDifficulty>& ThemeMetricCourseDifficultiesToShow::GetValue() const { return m_v; }
|
||||
|
||||
|
||||
static void RemoveStepsTypes( vector<StepsType>& inout, RString sStepsTypesToRemove )
|
||||
@@ -120,7 +120,7 @@ void ThemeMetricStepsTypesToShow::Read()
|
||||
|
||||
RemoveStepsTypes( m_v, ThemeMetric<RString>::GetValue() );
|
||||
}
|
||||
const vector<StepsType>& ThemeMetricStepsTypesToShow::GetValue() { return m_v; }
|
||||
const vector<StepsType>& ThemeMetricStepsTypesToShow::GetValue() const { return m_v; }
|
||||
|
||||
|
||||
RString CommonMetrics::LocalizeOptionItem( const RString &s, bool bOptional )
|
||||
|
||||
@@ -19,7 +19,7 @@ public:
|
||||
ThemeMetricDifficultiesToShow() { }
|
||||
ThemeMetricDifficultiesToShow( const RString& sGroup, const RString& sName );
|
||||
void Read();
|
||||
const vector<Difficulty> &GetValue();
|
||||
const vector<Difficulty> &GetValue() const;
|
||||
private:
|
||||
vector<Difficulty> m_v;
|
||||
};
|
||||
@@ -29,7 +29,7 @@ public:
|
||||
ThemeMetricCourseDifficultiesToShow() { }
|
||||
ThemeMetricCourseDifficultiesToShow( const RString& sGroup, const RString& sName );
|
||||
void Read();
|
||||
const vector<CourseDifficulty> &GetValue();
|
||||
const vector<CourseDifficulty> &GetValue() const;
|
||||
private:
|
||||
vector<CourseDifficulty> m_v;
|
||||
};
|
||||
@@ -39,7 +39,7 @@ public:
|
||||
ThemeMetricStepsTypesToShow() { }
|
||||
ThemeMetricStepsTypesToShow( const RString& sGroup, const RString& sName );
|
||||
void Read();
|
||||
const vector<StepsType> &GetValue();
|
||||
const vector<StepsType> &GetValue() const;
|
||||
private:
|
||||
vector<StepsType> m_v;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user