X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/df5168c427b51f1ab2b3200a5c8f7626b3d24aae..7c4728f63395c3641aa62f2b549ee693eb8be978:/src/common/datetime.cpp diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 6751dd2ad9..ac737d6322 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -222,16 +222,6 @@ const wxDateTime wxDefaultDateTime; wxDateTime::Country wxDateTime::ms_country = wxDateTime::Country_Unknown; -// ---------------------------------------------------------------------------- -// private globals -// ---------------------------------------------------------------------------- - -// a critical section is needed to protect GetTimeZone() static -// variable in MT case -#if wxUSE_THREADS - static wxCriticalSection gs_critsectTimezone; -#endif // wxUSE_THREADS - // ---------------------------------------------------------------------------- // private functions // ---------------------------------------------------------------------------- @@ -273,8 +263,6 @@ static int GetTimeZone() static long gmtoffset = LONG_MAX; // invalid timezone #endif - wxCRIT_SECT_LOCKER(lock, gs_critsectTimezone); - // ensure that the timezone variable is set by calling localtime if ( !s_timezoneSet ) { @@ -2680,7 +2668,7 @@ const wxChar *wxDateTime::ParseFormat(const wxChar *date, // parse the optional width size_t width = 0; - while ( isdigit(*++fmt) ) + while ( wxIsdigit(*++fmt) ) { width *= 10; width += *fmt - _T('0');