From 5797bffb8a3e610d86f8485d6f61123f38af74eb Mon Sep 17 00:00:00 2001 From: "dbaron%fas.harvard.edu" Date: Tue, 4 Dec 2001 05:26:46 +0000 Subject: [PATCH] Fix massive numbers of threadsafety assertions by re-adding NS_INIT_ISUPPORTS, to make builds usable again. b=110531 sr=waterson git-svn-id: svn://10.0.0.236/trunk@109616 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/ds/nsPersistentProperties.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/mozilla/xpcom/ds/nsPersistentProperties.h b/mozilla/xpcom/ds/nsPersistentProperties.h index 412fcc6cee5..34f02a0cd89 100644 --- a/mozilla/xpcom/ds/nsPersistentProperties.h +++ b/mozilla/xpcom/ds/nsPersistentProperties.h @@ -83,10 +83,18 @@ protected: class nsPropertyElement : public nsIPropertyElement { public: - nsPropertyElement() {}; - nsPropertyElement(const PRUnichar *aKey, - const PRUnichar *aValue): mKey(aKey), mValue(aValue) {} - virtual ~nsPropertyElement() {}; + nsPropertyElement() + { + NS_INIT_ISUPPORTS(); + } + + nsPropertyElement(const PRUnichar *aKey, const PRUnichar *aValue) + : mKey(aKey), mValue(aValue) + { + NS_INIT_ISUPPORTS(); + } + + virtual ~nsPropertyElement() {} NS_DECL_ISUPPORTS