fix the orange by changing the timers to member variables of the service singletons, rather

than static nsCOMPtrs!
r=sspitzer
a=fixing bustage
This commit is contained in:
alecf%netscape.com 2000-11-18 02:01:29 +00:00
parent 8b0edc8d91
commit 4c22bc7a46
4 changed files with 2 additions and 5 deletions

View File

@ -1582,8 +1582,6 @@ BookmarkParser::setFolderHint(nsIRDFResource *newSource, nsIRDFResource *objType
////////////////////////////////////////////////////////////////////////
// BookmarkDataSourceImpl
nsCOMPtr<nsITimer> nsBookmarksService::mTimer;
nsBookmarksService::nsBookmarksService()
: mInner(nsnull), mBookmarksAvailable(PR_FALSE), mDirty(PR_FALSE), mUpdateBatchNest(0)

View File

@ -58,7 +58,7 @@ protected:
nsCOMPtr<nsIStringBundle> mBundle;
nsString mPersonalToolbarName;
PRInt32 mUpdateBatchNest;
static nsCOMPtr<nsITimer> mTimer;
nsCOMPtr<nsITimer> mTimer;
#ifdef XP_MAC
PRBool mIEFavoritesAvailable;

View File

@ -314,7 +314,6 @@ nsCOMPtr<nsIRDFDataSource> InternetSearchDataSource::categoryDataSource;
PRBool InternetSearchDataSource::mEngineListBuilt;
nsCOMPtr<nsILoadGroup> InternetSearchDataSource::mBackgroundLoadGroup;
nsCOMPtr<nsILoadGroup> InternetSearchDataSource::mLoadGroup;
nsCOMPtr<nsITimer> InternetSearchDataSource::mTimer;
nsCOMPtr<nsIPref> InternetSearchDataSource::prefs;
nsIRDFResource *InternetSearchDataSource::kNC_SearchResult;

View File

@ -99,7 +99,7 @@ protected:
static nsIRDFDataSource *mInner;
static nsCOMPtr<nsIRDFDataSource> mLocalstore;
static nsCOMPtr<nsISupportsArray> mUpdateArray;
static nsCOMPtr<nsITimer> mTimer;
nsCOMPtr<nsITimer> mTimer;
static nsCOMPtr<nsILoadGroup> mBackgroundLoadGroup;
static nsCOMPtr<nsILoadGroup> mLoadGroup;
static nsCOMPtr<nsIRDFDataSource> categoryDataSource;