const ref.

This commit is contained in:
Steve Checkoway
2006-08-01 08:29:20 +00:00
parent 0c0e843f3d
commit ff18ad538a
+2 -2
View File
@@ -230,8 +230,8 @@ public:
ThemeMetricEnum( const RString& sGroup, const RString& sName ) :
ThemeMetric<RString>( sGroup, sName ) {}
void Read() { ThemeMetric<RString>::Read(); StringTo<T>(m_currentValue,m_Value); }
T GetValue() const { ASSERT( !m_sName.empty() && m_bIsLoaded ); return m_Value; }
operator T () const { return GetValue(); }
const T &GetValue() const { ASSERT( !m_sName.empty() && m_bIsLoaded ); return m_Value; }
operator const T& () const { return GetValue(); }
};