Warning cleaning.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-07-30 17:44:18 +00:00
parent 79e162f526
commit 534b127cac
2 changed files with 14 additions and 12 deletions

View File

@@ -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

View File

@@ -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
} }
} }