]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/list.h
don't use numbers in URLs if truncateFilenames=no
[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...)
 
 // 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);
 extern WXDLLIMPEXP_BASE wxChar* copystring(const wxChar *s);
+#endif
 
 class WXDLLEXPORT wxObjectListNode;
 typedef wxObjectListNode wxNode;
 
 class WXDLLEXPORT wxObjectListNode;
 typedef wxObjectListNode wxNode;
@@ -862,7 +864,7 @@ private:
             while (n < size())                                              \
                 pop_back();                                                 \
             while (n > size())                                              \
             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; }                      \
         }                                                                   \
         size_type size() const { return GetCount(); }                       \
         size_type max_size() const { return INT_MAX; }                      \