const ref.
This commit is contained in:
@@ -230,8 +230,8 @@ public:
|
|||||||
ThemeMetricEnum( const RString& sGroup, const RString& sName ) :
|
ThemeMetricEnum( const RString& sGroup, const RString& sName ) :
|
||||||
ThemeMetric<RString>( sGroup, sName ) {}
|
ThemeMetric<RString>( sGroup, sName ) {}
|
||||||
void Read() { ThemeMetric<RString>::Read(); StringTo<T>(m_currentValue,m_Value); }
|
void Read() { ThemeMetric<RString>::Read(); StringTo<T>(m_currentValue,m_Value); }
|
||||||
T GetValue() const { ASSERT( !m_sName.empty() && m_bIsLoaded ); return m_Value; }
|
const T &GetValue() const { ASSERT( !m_sName.empty() && m_bIsLoaded ); return m_Value; }
|
||||||
operator T () const { return GetValue(); }
|
operator const T& () const { return GetValue(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user