X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d2213b1fa58914353f076499106b1c07819926b3..333a0af9f9fb7822e4dba0796fe4a6cf550f7050:/include/wx/dynarray.h?ds=inline diff --git a/include/wx/dynarray.h b/include/wx/dynarray.h index a59e853236..79e9a5e7af 100644 --- a/include/wx/dynarray.h +++ b/include/wx/dynarray.h @@ -178,7 +178,7 @@ public: \ void Shrink(); \ \ size_t GetCount() const { return m_nCount; } \ - void SetCount(size_t n, T defval = T(0)); \ + void SetCount(size_t n, T defval = T()); \ bool IsEmpty() const { return m_nCount == 0; } \ size_t Count() const { return m_nCount; } \ \ @@ -564,6 +564,7 @@ public: \ size_t GetCount() const { return base_array::size(); } \ size_t size() const { return base_array::size(); } \ bool IsEmpty() const { return base_array::empty(); } \ + bool empty() const { return base_array::empty(); } \ size_t Count() const { return base_array::size(); } \ void Shrink() { base::Shrink(); } \ \ @@ -612,7 +613,7 @@ private: \ // same except that they use an additional __declspec(dllexport) or equivalent // under Windows if needed. // -// The first (just EXPORTED) macros do it if wxWindows was compiled as a DLL +// The first (just EXPORTED) macros do it if wxWidgets was compiled as a DLL // and so must be used used inside the library. The second kind (USER_EXPORTED) // allow the user code to do it when it wants. This is needed if you have a dll // that wants to export a wxArray daubed with your own import/export goo.