fix MSVC warning about int->bool conversion introduced by r55113
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -84,12 +84,14 @@ Uuid& Uuid::operator=(const Uuid& uuid)
|
|||||||
|
|
||||||
bool Uuid::operator==(const Uuid& uuid) const
|
bool Uuid::operator==(const Uuid& uuid) const
|
||||||
{
|
{
|
||||||
return m_uuid == uuid.m_uuid;
|
// IsEqualGUID() returns BOOL and not bool so use an explicit comparison to
|
||||||
|
// avoid MSVC warnings about int->bool conversion
|
||||||
|
return IsEqualGUID(m_uuid, uuid.m_uuid) == TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Uuid::operator!=(const Uuid& uuid) const
|
bool Uuid::operator!=(const Uuid& uuid) const
|
||||||
{
|
{
|
||||||
return m_uuid != uuid.m_uuid;
|
return !(*this == uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
// dtor
|
// dtor
|
||||||
|
Reference in New Issue
Block a user