m_uNextReloadTicks = -1; doesn't make sense; it's unsigned

This commit is contained in:
Glenn Maynard
2002-09-07 09:42:45 +00:00
parent d4f750d6b3
commit 5c9c9e4f5e
+2 -2
View File
@@ -31,7 +31,7 @@ ThemeManager::ThemeManager()
m_pIniMetrics = new IniFile;
/* Update the metric cache on the first call to GetMetric. */
m_uNextReloadTicks = -1;
m_uNextReloadTicks = 0;
m_sCurThemeName = BASE_THEME_NAME; // Use te base theme for now. It's up to PrefsManager to change this.
@@ -217,7 +217,7 @@ try_metric_again:
CString sDefaultMetricPath = GetMetricsPathFromName(BASE_THEME_NAME);
// Is our metric cache out of date?
if (m_uNextReloadTicks == -1 || ::GetTickCount() > m_uNextReloadTicks)
if (m_uNextReloadTicks == 0 || ::GetTickCount() > m_uNextReloadTicks)
{
m_uNextReloadTicks = GetTickCount()+1000;
if( m_iHashForCurThemeMetrics != GetHashForFile(sCurMetricPath) ||