]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/list.h
Header Cosmetics
[wxWidgets.git] / include / wx / list.h
index c17823a71baafdf0974d3ad7afef47b4630da84f..2312ea49082a20e5a4faab5767639a0d8eeb0344 100644 (file)
@@ -240,7 +240,9 @@ enum wxKeyType
 
 // due to circular header dependencies this function has to be declared here
 // (normally it's found in utils.h which includes itself list.h...)
+#if WXWIN_COMPATIBILITY_2_4
 extern WXDLLIMPEXP_BASE wxChar* copystring(const wxChar *s);
+#endif
 
 class WXDLLEXPORT wxObjectListNode;
 typedef wxObjectListNode wxNode;
@@ -862,7 +864,7 @@ private:
             while (n < size())                                              \
                 pop_back();                                                 \
             while (n > size())                                              \
-                push_back();                                                \
+                push_back(v);                                                \
         }                                                                   \
         size_type size() const { return GetCount(); }                       \
         size_type max_size() const { return INT_MAX; }                      \