X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c648a82a574a5fad06fdbdc61c4e10e340438c2..b0ee47ff76c278c053ac2ad36bb3129b0fcd050f:/include/wx/vector.h?ds=sidebyside

diff --git a/include/wx/vector.h b/include/wx/vector.h
index 55d1b5c015..716494056d 100644
--- a/include/wx/vector.h
+++ b/include/wx/vector.h
@@ -112,7 +112,7 @@ public:
 
     int capacity() const
     {
-        return m_size;
+        return m_capacity;
     };
 
     bool empty() const
@@ -153,7 +153,7 @@ public:\
 #define WX_DECLARE_VECTOR(obj, cls)\
 class cls : public wxVectorBase\
 {\
-    WX_DECLARE_STL_VECTORBASE(obj, cls);\
+    WX_DECLARE_VECTORBASE(obj, cls);\
 public:\
     void push_back(const obj& o)\
     {\