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