Bug 1491574 follow-up: Address more of the review comment

This commit is contained in:
Ehsan Akhgari
2018-09-17 23:55:01 -04:00
parent fb38472d01
commit 94639397a6
3 changed files with 3 additions and 3 deletions

View File

@@ -416,7 +416,7 @@ xpcAccessible::GetAttributes(nsIPersistentProperties** aAttributes)
AutoTArray<Attribute, 10> attrs;
proxy->Attributes(&attrs);
nsCOMPtr<nsIPersistentProperties> props = new nsPersistentProperties();
RefPtr<nsPersistentProperties> props = new nsPersistentProperties();
uint32_t attrCount = attrs.Length();
nsAutoString unused;
for (uint32_t i = 0; i < attrCount; i++) {

View File

@@ -646,7 +646,7 @@ XULTreeGridCellAccessible::Selected()
already_AddRefed<nsIPersistentProperties>
XULTreeGridCellAccessible::NativeAttributes()
{
nsCOMPtr<nsIPersistentProperties> attributes = new nsPersistentProperties();
RefPtr<nsPersistentProperties> attributes = new nsPersistentProperties();
// "table-cell-index" attribute
TableAccessible* table = Table();

View File

@@ -2029,7 +2029,7 @@ NS_LoadPersistentPropertiesFromURISpec(nsIPersistentProperties **outResult,
rv = channel->Open2(getter_AddRefs(in));
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<nsIPersistentProperties> properties = new nsPersistentProperties();
RefPtr<nsPersistentProperties> properties = new nsPersistentProperties();
rv = properties->Load(in);
NS_ENSURE_SUCCESS(rv, rv);