Make operator== avoid implicit comparisons

Signed-off-by: Nicholas Van Sickle <nvsickle@amazon.com>
This commit is contained in:
Nicholas Van Sickle
2022-01-06 16:55:24 -08:00
parent 25924c3d38
commit 839bbd734a
@@ -262,21 +262,6 @@ namespace AZ::Dom
{
return GetString() == rhs.GetString();
}
else if (IsNumber() && rhs.IsNumber())
{
if (IsInt())
{
return GetInt64() == rhs.GetInt64();
}
else if (IsUint())
{
return GetUint64() == rhs.GetUint64();
}
else
{
return GetDouble() == rhs.GetDouble();
}
}
else
{
return m_value == rhs.m_value;