Bug 1293666 - Add initializer_list ctor to AutoTArray. r=froydnj

MozReview-Commit-ID: 8ORBttWN2Rj
This commit is contained in:
Andrew McCreight
2016-08-09 07:21:26 -07:00
parent 397901095e
commit 9d8b970d73
3 changed files with 8 additions and 4 deletions

View File

@@ -4452,8 +4452,7 @@ nsDocShell::RemoveFromSessionHistory()
int32_t index = 0;
sessionHistory->GetIndex(&index);
AutoTArray<uint64_t, 16> ids;
ids.AppendElement(mHistoryID);
AutoTArray<uint64_t, 16> ids({mHistoryID});
internalHistory->RemoveEntries(ids, index);
return NS_OK;
}