]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/vector.h
Applied patch [ 619705 ] Fixes wxApp::GetComCtl32Version
[wxWidgets.git] / include / wx / vector.h
index 39f2fbd14550a49d1d8808704d26d4f6194551c9..36bb252b1708000c5ba9a6a64929dc9af10cf244 100644 (file)
@@ -126,8 +126,7 @@ public:
 
     wxVectorBase& operator = (const wxVectorBase& vb)
     {
-        bool rc = copy(vb);
-        wxASSERT(rc);
+        wxCHECK(copy(vb), *this);
         return *this;
     }
 };
@@ -146,8 +145,7 @@ public:\
     cls() {}\
     cls(const cls& c)\
     {\
-        bool rc = copy(c);\
-        wxASSERT(rc);\
+        wxCHECK2(copy(c), return);\
     }\
     ~cls()\
     {\
@@ -161,8 +159,7 @@ class exp cls : public wxVectorBase\
 public:\
     void push_back(const obj& o)\
     {\
-        bool rc = Alloc(size() + 1);\
-        wxASSERT(rc);\
+        wxCHECK2(Alloc(size() + 1), return);\
         Append(new obj(o));\
     };\
     void pop_back()\