X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2753fd96ffed24e04c4828eaa97dccfdb6b24764..0c75b29e1ed19810546de38b646b5b901be873e2:/src/msw/ole/uuid.cpp diff --git a/src/msw/ole/uuid.cpp b/src/msw/ole/uuid.cpp index c21369b4ef..76a9680222 100644 --- a/src/msw/ole/uuid.cpp +++ b/src/msw/ole/uuid.cpp @@ -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