X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce76f779c6cfd2155de825021cc645572fe43625..b0802e642190c07d819d1c01bd7c315453d091d0:/src/common/string.cpp diff --git a/src/common/string.cpp b/src/common/string.cpp index d5c51592e0..4304d78ff7 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -1835,8 +1835,8 @@ int wxString::PrintfV(const wxChar* pszFormat, va_list argptr) // also, it may return an errno may be something like EILSEQ, // in which case we need to break out if ( (len >= 0 && len <= size) - // No EOVERFLOW on Windows nor Palm 6.0 nor OpenVMS -#if !defined(__WXMSW__) && !defined(__WXPALMOS__) && !defined( __VMS ) + // No EOVERFLOW on Windows nor Palm 6.0 nor OpenVMS nor MacOS (not X) +#if !defined(__WXMSW__) && !defined(__WXPALMOS__) && !defined( __VMS ) && !(defined(__WXMAC__) && !defined(__WXMAC_OSX__)) || errno != EOVERFLOW #endif ) @@ -2032,6 +2032,24 @@ int wxString::sprintf(const wxChar *pszFormat, ...) #include "wx/arrstr.h" +wxArrayString::wxArrayString(size_t sz, const wxChar** a) +{ +#if !wxUSE_STL + Init(false); +#endif + for (size_t i=0; i < sz; i++) + Add(a[i]); +} + +wxArrayString::wxArrayString(size_t sz, const wxString* a) +{ +#if !wxUSE_STL + Init(false); +#endif + for (size_t i=0; i < sz; i++) + Add(a[i]); +} + #if !wxUSE_STL // size increment = min(50% of current size, ARRAY_MAXSIZE_INCREMENT)