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
This commit is contained in:
parent
c5ab769ff9
commit
60ad216299
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user