git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22763
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxIdleEvent event;
bool needMore = FALSE;
wxWindowList::compatibility_iterator node = wxTopLevelWindows.GetFirst();
wxIdleEvent event;
bool needMore = FALSE;
wxWindowList::compatibility_iterator node = wxTopLevelWindows.GetFirst();
- node = wxTopLevelWindows.GetFirst();
while (node)
{
wxWindow* win = node->GetData();
while (node)
{
wxWindow* win = node->GetData();
// (in seconds)
static int GetTimeZone()
{
// (in seconds)
static int GetTimeZone()
{
// set to TRUE when the timezone is set
static bool s_timezoneSet = FALSE;
// set to TRUE when the timezone is set
static bool s_timezoneSet = FALSE;
static long gmtoffset = LONG_MAX; // invalid timezone
static long gmtoffset = LONG_MAX; // invalid timezone
// ensure that the timezone variable is set by calling localtime
if ( !s_timezoneSet )
// ensure that the timezone variable is set by calling localtime
if ( !s_timezoneSet )
tm = localtime(&t);
s_timezoneSet = TRUE;
tm = localtime(&t);
s_timezoneSet = TRUE;
// note that GMT offset is the opposite of time zone and so to return
// consistent results in both WX_GMTOFF_IN_TM and !WX_GMTOFF_IN_TM
// cases we have to negate it
gmtoffset = -tm->tm_gmtoff;
// note that GMT offset is the opposite of time zone and so to return
// consistent results in both WX_GMTOFF_IN_TM and !WX_GMTOFF_IN_TM
// cases we have to negate it
gmtoffset = -tm->tm_gmtoff;
+#else // !WX_GMTOFF_IN_TM
+#endif // WX_GMTOFF_IN_TM/!WX_GMTOFF_IN_TM
}
// return the integral part of the JDN for the midnight of the given date (to
}
// return the integral part of the JDN for the midnight of the given date (to
wxString dirname;
for ( bool cont = GetFirst(&dirname, _T(""), wxDIR_DIRS | wxDIR_HIDDEN);
cont;
wxString dirname;
for ( bool cont = GetFirst(&dirname, _T(""), wxDIR_DIRS | wxDIR_HIDDEN);
cont;
- cont = GetNext(&dirname) )
+ cont = cont && GetNext(&dirname) )
{
const wxString fulldirname = prefix + dirname;
{
const wxString fulldirname = prefix + dirname;