From 8c425419991b55aab70b0d63ccb2f664e8885d0f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 18 Aug 2008 20:04:58 +0000 Subject: [PATCH] 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 --- src/msw/ole/uuid.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/msw/ole/uuid.cpp b/src/msw/ole/uuid.cpp index c21369b4ef..b3b6cb1b98 100644 --- a/src/msw/ole/uuid.cpp +++ b/src/msw/ole/uuid.cpp @@ -84,12 +84,14 @@ Uuid& Uuid::operator=(const Uuid& 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; } bool Uuid::operator!=(const Uuid& uuid) const { - return m_uuid != uuid.m_uuid; + return !(*this == uuid); } // dtor