X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..302674fe1712a4abfa00203f91d13cb977007c8c:/include/wx/msw/ole/uuid.h?ds=sidebyside diff --git a/include/wx/msw/ole/uuid.h b/include/wx/msw/ole/uuid.h index 1bda2dc680..ef82be0371 100644 --- a/include/wx/msw/ole/uuid.h +++ b/include/wx/msw/ole/uuid.h @@ -14,7 +14,7 @@ #ifndef _WX_OLEUUID_H #define _WX_OLEUUID_H -#include "wx/wxchar.h" +#include "wx/chartype.h" // ------------------------------------------------------------------ // UUID (Universally Unique IDentifier) definition // ------------------------------------------------------------------ @@ -44,7 +44,7 @@ typedef unsigned char uchar; // ------------------------------------------------------------------ // uses RPC functions to create/convert Universally Unique Identifiers -class WXDLLEXPORT Uuid +class WXDLLIMPEXP_CORE Uuid { private: UUID m_uuid; @@ -74,6 +74,10 @@ public: bool Set(const wxChar *pc); // from a string, returns true if ok void Set(const UUID& uuid); // from another UUID (never fails) + // comparison operators + bool operator==(const Uuid& uuid) const; + bool operator!=(const Uuid& uuid) const { return !(*this == uuid); } + // accessors operator const UUID*() const { return &m_uuid; } operator const wxChar*() const { return (wxChar *)(m_pszUuid); }