]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/stack.h
applied heavily modified patch 1116702: support for specifying disabled toolbar image...
[wxWidgets.git] / include / wx / stack.h
index 3edda4fc49b9be6b77558531a2bb1f07c1d44a47..2500a114c609de25f6c939dc9c27088789df424b 100644 (file)
@@ -5,7 +5,7 @@
 // Modified by:
 // Created:     30.07.2001
 // Copyright:   (c) 2001 Lindsay Mathieson <lindsay@mathieson.org>
 // Modified by:
 // Created:     30.07.2001
 // Copyright:   (c) 2001 Lindsay Mathieson <lindsay@mathieson.org>
-// Licence:     wxWidgets licence
+// Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
 #ifndef _WX_STACK_H_
 ///////////////////////////////////////////////////////////////////////////////
 
 #ifndef _WX_STACK_H_
 #define WX_DECLARE_STACK(obj, cls)\
 class cls : public wxVectorBase\
 {\
 #define WX_DECLARE_STACK(obj, cls)\
 class cls : public wxVectorBase\
 {\
-       WX_DECLARE_VECTORBASE(obj, cls);\
+    WX_DECLARE_VECTORBASE(obj, cls);\
 public:\
 public:\
-       void push(const obj& o)\
-       {\
-               bool rc = Alloc(size() + 1);\
-               wxASSERT(rc);\
-               Append(new obj(o));\
-       };\
+    void push(const obj& o)\
+    {\
+        bool rc = Alloc(size() + 1);\
+        wxASSERT(rc);\
+        Append(new obj(o));\
+    };\
 \
 \
-       void pop()\
-       {\
-               RemoveAt(size() - 1);\
-       };\
+    void pop()\
+    {\
+        RemoveAt(size() - 1);\
+    };\
 \
 \
-       obj& top()\
-       {\
-               return *(obj *) GetItem(size() - 1);\
-       };\
-       const obj& top() const\
-       {\
-               return *(obj *) GetItem(size() - 1);\
-       };\
+    obj& top()\
+    {\
+        return *(obj *) GetItem(size() - 1);\
+    };\
+    const obj& top() const\
+    {\
+        return *(obj *) GetItem(size() - 1);\
+    };\
 }
 
 #endif // _WX_STACK_H_
 }
 
 #endif // _WX_STACK_H_