From 60ad216299bf46160ff719f99ecb367b3fbca462 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Thu, 18 Sep 2003 02:57:13 +0000 Subject: [PATCH] Bug 218754 Don't double init nsPrefLocalizedString::mUnicodeString r=bsmedberg sr=alecf git-svn-id: svn://10.0.0.236/trunk@147017 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/libpref/src/nsPrefBranch.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mozilla/modules/libpref/src/nsPrefBranch.cpp b/mozilla/modules/libpref/src/nsPrefBranch.cpp index 0342d15a736..bbfc9af4509 100644 --- a/mozilla/modules/libpref/src/nsPrefBranch.cpp +++ b/mozilla/modules/libpref/src/nsPrefBranch.cpp @@ -848,7 +848,7 @@ nsresult nsPrefBranch::GetDefaultFromPropertiesFile(const char *aPrefName, PRUni if (NS_FAILED(rv)) return rv; - // string names are in unicdoe + // string names are in unicode nsAutoString stringId; stringId.AssignWithConversion(aPrefName); @@ -972,10 +972,7 @@ NS_IMETHODIMP nsPrefBranch::SecurityClearUserPref(const char *pref_name) //---------------------------------------------------------------------------- nsPrefLocalizedString::nsPrefLocalizedString() -: mUnicodeString(nsnull) { - nsresult rv; - mUnicodeString = do_CreateInstance(NS_SUPPORTS_STRING_CONTRACTID, &rv); } nsPrefLocalizedString::~nsPrefLocalizedString()