X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/521bf4ff3ef47059265beff5d53c9e1162beb122..43f4e852a1b2ac37c3db6a2b87315192ac549191:/src/msw/ole/uuid.cpp?ds=sidebyside diff --git a/src/msw/ole/uuid.cpp b/src/msw/ole/uuid.cpp index 06cd373fdd..2153a25391 100644 --- a/src/msw/ole/uuid.cpp +++ b/src/msw/ole/uuid.cpp @@ -20,12 +20,12 @@ #pragma hdrstop #endif -#if wxUSE_OLE && ( wxUSE_DRAG_AND_DROP || (defined(__WXDEBUG__) && wxUSE_DATAOBJ) ) +#if wxUSE_OLE && (wxUSE_DRAG_AND_DROP || wxUSE_DATAOBJ) -// standard headers -#if wxCHECK_W32API_VERSION( 1, 0 ) +#ifndef WX_PRECOMP #include "wx/msw/wrapwin.h" #endif + #include // UUID related functions #include "wx/msw/ole/uuid.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() {