const, RString

This commit is contained in:
Glenn Maynard
2005-12-20 19:55:09 +00:00
parent d698a5f1ec
commit 54ab1ec707
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1953,12 +1953,12 @@ LocalizedString::~LocalizedString()
} }
LocalizedString::operator const CString&() LocalizedString::operator const RString&() const
{ {
return GetValue(); return GetValue();
} }
const CString &LocalizedString::GetValue() const CString &LocalizedString::GetValue() const
{ {
ASSERT(!m_sValue.empty()); return m_sValue; ASSERT(!m_sValue.empty()); return m_sValue;
} }
+2 -2
View File
@@ -513,8 +513,8 @@ public:
LocalizedString( const RString &sSection, const RString &sName ); LocalizedString( const RString &sSection, const RString &sName );
~LocalizedString(); ~LocalizedString();
void Refresh(); void Refresh();
operator const CString&(); operator const RString&() const;
const CString &GetValue(); const RString &GetValue() const;
private: private:
RString m_sSection; RString m_sSection;
RString m_sName; RString m_sName;