Make operator== avoid implicit comparisons
Signed-off-by: Nicholas Van Sickle <nvsickle@amazon.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user