Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj.

This commit is contained in:
Nicholas Nethercote
2017-07-31 14:28:48 +10:00
parent a222153d9c
commit 09493fcbcf
49 changed files with 216 additions and 229 deletions

View File

@@ -73,9 +73,11 @@ ForbidCPOWsInCompatibleAddon(const nsACString& aAddonId)
return false;
}
nsCString allow;
nsAutoCString allow;
allow.Assign(',');
allow.Append(Preferences::GetCString("dom.ipc.cpows.allow-cpows-in-compat-addons"));
nsAutoCString pref;
Preferences::GetCString("dom.ipc.cpows.allow-cpows-in-compat-addons", pref);
allow.Append(pref);
allow.Append(',');
nsCString searchString(",");