]> git.saurik.com Git - wxWidgets.git/commitdiff
fix MSVC warning about int->bool conversion introduced by r55113 [forward port from...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 18 Aug 2008 20:05:51 +0000 (20:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 18 Aug 2008 20:05:51 +0000 (20:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/ole/uuid.cpp

index c21369b4ef0895263d0d1e60e5e74665f5808934..76a968022261564f03f3601458bea8720c4f591c 100644 (file)
@@ -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