fix BeOS bustage (this code not in the mac/win/unix builds)

This commit is contained in:
alecf%netscape.com 2000-11-18 03:05:53 +00:00
Родитель 0d26acf3ed
Коммит 72386f4119
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -2014,14 +2014,14 @@ else
#endif
#ifndef REPEATING_TIMERS
if (mTimer)
if (bmks->mTimer)
{
mTimer->Cancel();
mTimer = nsnull;
bmks->mTimer->Cancel();
bmks->mTimer = nsnull;
}
mTimer = do_CreateInstance("@mozilla.org/timer;1", &rv);
if (NS_FAILED(rv) || (!mTimer)) return;
mTimer->Init(nsBookmarksService::FireTimer, bmks, BOOKMARK_TIMEOUT, NS_PRIORITY_LOWEST, NS_TYPE_REPEATING_SLACK);
bmks->mTimer->Init(nsBookmarksService::FireTimer, bmks, BOOKMARK_TIMEOUT, NS_PRIORITY_LOWEST, NS_TYPE_REPEATING_SLACK);
// Note: don't addref "this" as we'll cancel the timer in the nsBookmarkService destructor
#endif
}