From 018f2884d8e259d40f945e94013f554a1033294d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Jul 2002 21:59:06 +0000 Subject: [PATCH] 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 --- include/wx/msw/ole/oleutils.h | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.50.0