changes all usages of NS_NewTimer to CreateInstance

This commit is contained in:
pavlov@netscape.com
2000-05-17 02:49:35 +00:00
parent 74bd449c4e
commit 2d15c3f4b4
94 changed files with 136 additions and 240 deletions

View File

@@ -2004,8 +2004,7 @@ NS_IMETHODIMP nsDocShell::RefreshURI(nsIURI *aURI, PRInt32 aDelay, PRBool aRepea
refreshTimer->mDelay = aDelay;
refreshTimer->mRepeat = aRepeat;
nsITimer* timer = nsnull;
NS_NewTimer(&timer);
nsCOMPtr<nsITimer> timer = do_CreateInstance("component://netscape/timer");
NS_ENSURE_TRUE(timer, NS_ERROR_FAILURE);
mRefreshURIList.AppendElement(timer);