]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dynarray.h
Removed unnecessary code from utilsunx.cpp
[wxWidgets.git] / include / wx / dynarray.h
index fc49a0f260c5399e89f6f0b6d34e712352b05293..109a89437c2b079649c3f23a2c402c470c8bb685 100644 (file)
@@ -448,6 +448,16 @@ WX_DEFINE_EXPORTED_ARRAY(void *, wxArrayPtrVoid);
 // convinience macros
 // -----------------------------------------------------------------------------
 
+// append all element of one array to another one
+#define WX_APPEND_ARRAY(array, other)                                         \
+    {                                                                         \
+        size_t count = other.Count();                                         \
+        for ( size_t n = 0; n < count; n++ )                                  \
+        {                                                                     \
+            array.Add(other[n]);                                              \
+        }                                                                     \
+    }
+
 // delete all array elements
 //
 // NB: the class declaration of the array elements must be visible from the