Warning cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
79e162f526
commit
534b127cac
@ -417,23 +417,23 @@ bool wxUpdateUIEvent::CanUpdate(wxWindowBase *win)
|
||||
|
||||
if (sm_updateInterval == -1)
|
||||
return false;
|
||||
else if (sm_updateInterval == 0)
|
||||
|
||||
if (sm_updateInterval == 0)
|
||||
return true;
|
||||
else
|
||||
{
|
||||
|
||||
#if wxUSE_STOPWATCH && wxUSE_LONGLONG
|
||||
wxLongLong now = wxGetLocalTimeMillis();
|
||||
if (now > (sm_lastUpdate + sm_updateInterval))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
// If we don't have wxStopWatch or wxLongLong, we
|
||||
// should err on the safe side and update now anyway.
|
||||
wxLongLong now = wxGetLocalTimeMillis();
|
||||
if (now > (sm_lastUpdate + sm_updateInterval))
|
||||
{
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
return false;
|
||||
#else
|
||||
// If we don't have wxStopWatch or wxLongLong, we
|
||||
// should err on the safe side and update now anyway.
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
// Reset the update time to provide a delay until the next
|
||||
|
@ -1145,6 +1145,8 @@ void wxScrollHelper::HandleOnMouseLeave(wxMouseEvent& event)
|
||||
orient
|
||||
);
|
||||
m_timerAutoScroll->Start(50); // FIXME: make configurable
|
||||
#else
|
||||
wxUnusedVar(pos);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user