Warning cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -417,23 +417,23 @@ bool wxUpdateUIEvent::CanUpdate(wxWindowBase *win)
|
|||||||
|
|
||||||
if (sm_updateInterval == -1)
|
if (sm_updateInterval == -1)
|
||||||
return false;
|
return false;
|
||||||
else if (sm_updateInterval == 0)
|
|
||||||
|
if (sm_updateInterval == 0)
|
||||||
return true;
|
return true;
|
||||||
else
|
|
||||||
{
|
|
||||||
#if wxUSE_STOPWATCH && wxUSE_LONGLONG
|
#if wxUSE_STOPWATCH && wxUSE_LONGLONG
|
||||||
wxLongLong now = wxGetLocalTimeMillis();
|
wxLongLong now = wxGetLocalTimeMillis();
|
||||||
if (now > (sm_lastUpdate + sm_updateInterval))
|
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.
|
|
||||||
return true;
|
return true;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
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
|
// Reset the update time to provide a delay until the next
|
||||||
|
@@ -1145,6 +1145,8 @@ void wxScrollHelper::HandleOnMouseLeave(wxMouseEvent& event)
|
|||||||
orient
|
orient
|
||||||
);
|
);
|
||||||
m_timerAutoScroll->Start(50); // FIXME: make configurable
|
m_timerAutoScroll->Start(50); // FIXME: make configurable
|
||||||
|
#else
|
||||||
|
wxUnusedVar(pos);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user