Ejemplo n.º 1
0
bool LocalizedString::operator==(const LocalizedString& other) const
{
  if (m_Type!=other.getType()) return false;
  switch(m_Type)
  {
    case lsIndex:
         return (m_Index==other.m_Index);
    case lsString:
         return (m_String==other.m_String);
    default: //lsNone
         return true;
  }//swi
}