X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/45a959a33bac277694a647495b2efc7c023a58b7..c2e5616e067362c41c8103338323e0dab3a53f1e:/include/wx/msw/ole/oleutils.h diff --git a/include/wx/msw/ole/oleutils.h b/include/wx/msw/ole/oleutils.h index afab7f2854..9f71b28de5 100644 --- a/include/wx/msw/ole/oleutils.h +++ b/include/wx/msw/ole/oleutils.h @@ -12,7 +12,7 @@ #ifndef _WX_OLEUTILS_H #define _WX_OLEUTILS_H -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "oleutils.h" #endif @@ -72,7 +72,7 @@ public: wxAutoULong(ULONG value = 0) : m_Value(value) { } operator ULONG&() { return m_Value; } - ULONG& operator=(ULONG value) { return m_Value = value; } + ULONG& operator=(ULONG value) { m_Value = value; return m_Value; } wxAutoULong& operator++() { ++m_Value; return *this; } const wxAutoULong operator++( int ) { wxAutoULong temp = *this; ++m_Value; return temp; } @@ -134,7 +134,7 @@ private: { \ wxLogRelease(_T(#classname), m_cRef); \ \ - if ( --m_cRef == 0 ) { \ + if ( --m_cRef == wxAutoULong(0) ) { \ delete this; \ return 0; \ } \