]> git.saurik.com Git - wxWidgets.git/commitdiff
added operator++/-- for wxAutoULong (SF patch from Igor)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 23 Jul 2002 21:59:06 +0000 (21:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 23 Jul 2002 21:59:06 +0000 (21:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/ole/oleutils.h

index 1d19f4f763cc010e23a8456546334e470f73f2df..a628ee50a4f1eafb1caa1432fa0ff5a3c7048e9c 100644 (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;