mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-18 10:26:15 +01:00
Simplify the Tile::operator==() method
This commit is contained in:
parent
1336e3b65d
commit
221158e19a
1 changed files with 2 additions and 7 deletions
|
@ -162,13 +162,8 @@ bool Tile::operator<(const Tile &iOther) const
|
||||||
|
|
||||||
bool Tile::operator==(const Tile &iOther) const
|
bool Tile::operator==(const Tile &iOther) const
|
||||||
{
|
{
|
||||||
if (m_joker || iOther.m_joker)
|
return m_char == iOther.m_char
|
||||||
{
|
&& m_joker == iOther.m_joker;
|
||||||
if (m_joker != iOther.m_joker)
|
|
||||||
return false;
|
|
||||||
return m_char == iOther.m_char;
|
|
||||||
}
|
|
||||||
return m_char == iOther.m_char;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue