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
This commit is contained in:
Vadim Zeitlin
2002-07-23 21:59:06 +00:00
parent d44c23ceb6
commit 018f2884d8

View File

@@ -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;