fix MSVC warning about int->bool conversion introduced by r55113 [forward port from 2.8 branch]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
aa74cc2120
commit
a0fa7d39f5
@ -84,12 +84,9 @@ Uuid& Uuid::operator=(const Uuid& uuid)
|
||||
|
||||
bool Uuid::operator==(const Uuid& uuid) const
|
||||
{
|
||||
return m_uuid == uuid.m_uuid;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
// dtor
|
||||
|
Loading…
Reference in New Issue
Block a user