X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/371a5b4e62eb415107e045588f614fa49e866e78..31ad423e4fb556ec225a63b161154d3bf3445c1b:/include/wx/vector.h?ds=sidebyside diff --git a/include/wx/vector.h b/include/wx/vector.h index 39f2fbd145..2034a9eaa8 100644 --- a/include/wx/vector.h +++ b/include/wx/vector.h @@ -13,7 +13,7 @@ #include "wx/defs.h" -class WXDLLEXPORT wxVectorBase +class WXDLLIMPEXP_BASE wxVectorBase { public: typedef size_t size_type; @@ -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()\