X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/57bd4c6031d438f11af0ec540136f49a928b923c..43f4e852a1b2ac37c3db6a2b87315192ac549191:/src/msw/ole/uuid.cpp diff --git a/src/msw/ole/uuid.cpp b/src/msw/ole/uuid.cpp index 0b1020d849..2153a25391 100644 --- a/src/msw/ole/uuid.cpp +++ b/src/msw/ole/uuid.cpp @@ -20,7 +20,7 @@ #pragma hdrstop #endif -#if wxUSE_OLE && ( wxUSE_DRAG_AND_DROP || (defined(__WXDEBUG__) && wxUSE_DATAOBJ) ) +#if wxUSE_OLE && (wxUSE_DRAG_AND_DROP || wxUSE_DATAOBJ) #ifndef WX_PRECOMP #include "wx/msw/wrapwin.h" @@ -82,6 +82,13 @@ Uuid& Uuid::operator=(const Uuid& uuid) return *this; } +bool Uuid::operator==(const Uuid& uuid) const +{ + // 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) != 0; +} + // dtor Uuid::~Uuid() {