From: Vadim Zeitlin Date: Tue, 23 Jul 2002 21:59:06 +0000 (+0000) Subject: added operator++/-- for wxAutoULong (SF patch from Igor) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/018f2884d8e259d40f945e94013f554a1033294d?ds=inline added operator++/-- for wxAutoULong (SF patch from Igor) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/ole/oleutils.h b/include/wx/msw/ole/oleutils.h index 1d19f4f763..a628ee50a4 100644 --- a/include/wx/msw/ole/oleutils.h +++ b/include/wx/msw/ole/oleutils.h @@ -74,6 +74,12 @@ public: operator ULONG&() { return m_Value; } ULONG& operator=(ULONG value) { return m_Value = value; } + + wxAutoULong& operator++() { ++m_Value; return *this; } + const wxAutoULong operator++( int ) { wxAutoULong temp = *this; ++m_Value; return temp; } + + wxAutoULong& operator--() { --m_Value; return *this; } + const wxAutoULong operator--( int ) { wxAutoULong temp = *this; --m_Value; return temp; } private: ULONG m_Value;