This can be made const.
Anyone want to transplant this?
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ public:
|
||||
void PushSelf( Lua *L );
|
||||
|
||||
// smart accessor
|
||||
const RString &GetDisplayName() { return !m_sDisplayName.empty() ? m_sDisplayName : m_sCharacterID; }
|
||||
const RString &GetDisplayName() const { return !m_sDisplayName.empty() ? m_sDisplayName : m_sCharacterID; }
|
||||
|
||||
RString m_sCharDir;
|
||||
RString m_sCharacterID;
|
||||
|
||||
Reference in New Issue
Block a user