fix "more than one user-defined conversion has been implicitly applied" in

SDebugOverlay
This commit is contained in:
Glenn Maynard
2005-12-20 20:09:15 +00:00
parent 54ab1ec707
commit 296dafdd11
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1953,12 +1953,12 @@ LocalizedString::~LocalizedString()
} }
LocalizedString::operator const RString&() const LocalizedString::operator RString() const
{ {
return GetValue(); return GetValue();
} }
const CString &LocalizedString::GetValue() const RString 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 RString&() const; operator RString() const;
const RString &GetValue() const; RString GetValue() const;
private: private:
RString m_sSection; RString m_sSection;
RString m_sName; RString m_sName;